From: | "Iain" <iain(at)mst(dot)co(dot)jp> |
---|---|
To: | "Kris Jurka" <books(at)ejurka(dot)com> |
Cc: | <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: getting JDBC connection working |
Date: | 2004-01-13 06:27:20 |
Message-ID: | 000c01c3d99e$4ca52f60$7201a8c0@mst1x5r347kymb |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Hi Kris,
Thanks for your help.
> The --with-java option is only if you want to build the driver yourself.
> If you've downloaded a prebuilt binary there is no need for this.
OK, that makes sense.
> > My little test program is currently failing with a
ClassNotFoundException
> > during the call:
> >
> > Class.forName("org.postgresql.Driver");
>
> You have apparently not set the classpath correctly.
typing "env" from the postgres user account, gives the following:
CLASSPATH=/usr/local/pgsql/share/java/pg74jdbc3.jar:.
I double checked and the file is in that directory. I stopped and resterted
the DB too.
This is my first time to use Java, so I may be missing something obvious.
All I have done so far is put in the JDBC driver as I described, and
download the windows version of the Java IDE and test a small program to
connect. As far as I know there is no JVM on the server at he moment. TCP/IP
connections are enabled, and working OK for ODBC apps.
If you have any more ideas, please let me know,
regards
Iain
>
> Kris Jurka
>
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2004-01-13 06:48:50 | Re: getting JDBC connection working |
Previous Message | Kris Jurka | 2004-01-13 05:52:28 | Re: getting JDBC connection working |