From: | "Dave Cramer" <Dave(at)micro-automation(dot)net> |
---|---|
To: | "'Guido'" <lampo(dot)14(at)iol(dot)it>, <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: JDBC Connection |
Date: | 2001-11-09 03:55:42 |
Message-ID: | 01e301c168d2$67a10030$c201a8c0@inspiron |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Guido,
Instead of adding it to PATH, you have to add it to an environment
variable CLASSPATH
Dave
-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Guido
Sent: November 8, 2001 3:15 PM
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [JDBC] JDBC Connection
Hi everybody, here's my poroblem:
Distibution - RH 7.1
JDK - 1.3.1
I try to connect to the pgsql data base with my application but all I
get
it's the following exception
java.lang.ClassNotFoundException: org.postgresql.Driver
which is thrown by
Class.forName("org.postgresql.Driver");
I followed the instructions on the Programmer's Guide by exporting
/usr/java/jdk1.3.1_01/lib/jdbc7.1-1.2.jar (the dir where I've
put
the jdbc driver)
to my PATH.
When I echo the PATH I get the correct sequence.
Thanks for all the help you can give me.
Guido
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2001-11-09 03:58:34 | Re: JDBC driver |
Previous Message | Barry Lind | 2001-11-09 03:49:35 | Re: ResultSet.getDate failure with timestamp column |