Re: Error:java.lang.ClassNotFoundException: org.postgresql.Driver

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Error:java.lang.ClassNotFoundException: org.postgresql.Driver
Date: 2016-03-29 19:34:23
Message-ID: 56FAD8BF.5020008@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 3/29/2016 12:16 PM, M. Dietrich wrote:
> Zitat aus Nithin Chakravarthi's Nachricht :
>> *"export
>> CLASSPATH=./Server.jar:~/Downloads/postgresql-9.3-1103.jdbc3.jar"*
>
> java does not expand the "~" denoting your home dir, use `pwd`
> instead to let the shell do that or name the full filename
> with absolute directory.

I'd suggest:

export
CLASSPATH=./Server.jar:$HOME/Downloads/postgresql-9.3-1103.jdbc3.jar

that $HOME will get expanded when the 'set' is being done, so the value
of $CLASSPATH will contain ...:/home/whatever/Downloads/...

--
john r pierce, recycling bits in santa cruz

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message M. Dietrich 2016-03-30 21:20:43 Re: Error:java.lang.ClassNotFoundException: org.postgresql.Driver
Previous Message M. Dietrich 2016-03-29 19:16:10 Re: Error:java.lang.ClassNotFoundException: org.postgresql.Driver