Skip site navigation (1) Skip section navigation (2)

Re: JDBC Connection

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 (view raw or flat)
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



In response to

pgsql-jdbc by date

Next:From: Dave CramerDate: 2001-11-09 03:58:34
Subject: Re: JDBC driver
Previous:From: Barry LindDate: 2001-11-09 03:49:35
Subject: Re: ResultSet.getDate failure with timestamp column

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group