pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <Dave@micro-automation.net>
To: 'Guido' <lampo.14@iol.it>
To: pgsql-jdbc@postgresql.org
Subject: Re: JDBC Connection
Date: Thu, 8 Nov 2001 22:55:42 -0500
Message-ID: <01e301c168d2$67a10030$c201a8c0@inspiron> (raw)
In-Reply-To: <20011108211458.A1109@localhost>

Guido,

Instead of adding it to PATH, you have to add it to an environment
variable CLASSPATH

Dave 

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Guido
Sent: November 8, 2001 3:15 PM
To: pgsql-jdbc@postgresql.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





view thread (19+ messages)  latest in thread

Message-ID: <01e301c168d2$67a10030$c201a8c0@inspiron>
Permalink:  ../01e301c168d2$67a10030$c201a8c0@inspiron/
Also on:    postgresql.org/message-id/01e301c168d2$67a10030$c201a8c0@inspiron

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: Dave@micro-automation.net, lampo.14@iol.it
  Subject: Re: JDBC Connection
  In-Reply-To: <01e301c168d2$67a10030$c201a8c0@inspiron>
  References: <20011108211458.A1109@localhost> <01e301c168d2$67a10030$c201a8c0@inspiron>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox