| From: | Kris Jurka <books(at)ejurka(dot)com> |
|---|---|
| To: | Young Nam <Ynam(at)sharedmarketing(dot)com> |
| Cc: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: JDBC connection issue |
| Date: | 2004-07-13 16:40:48 |
| Message-ID: | Pine.BSO.4.56.0407131130440.27820@leary.csoft.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
On Tue, 13 Jul 2004, Young Nam wrote:
> The default directory for the postgresql.jar is
> /usr/local/pgsql/share/java/postgresql.jar I've run >jar -tf
> /usr/local/pgsql/share/java/postgresql.jar and the class files seem to
> be in the right order.
>
> I've added the following line to the pg_hba.conf to test local
> connections via jdbc driver.
> local all all 127.0.0.1 trust
You need to use "host" not "local" here. Local is only for unix sockets
which cannot be used with Java.
> Added CLASSPATH to bashrc file
> export CLASSPATH=/usr/local/pgsql/share/java/postgresql.jar:${CLASSPATH}
>
> java.lang.ClassNotFoundException: org.postgresql.Driver
>
When you check the classpath with something like echo $CLASSPATH is it set
as you specified?
Kris Jurka
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kris Jurka | 2004-07-13 16:44:27 | Re: Retrieving User information |
| Previous Message | Bill Chandler | 2004-07-13 16:13:46 | Re: [PERFORM] Cursors performance |