Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (8.11.3/8.11.4) with SMTP id fA940fm34945 for ; Thu, 8 Nov 2001 23:00:41 -0500 (EST) (envelope-from Dave@micro-automation.net) Received: (qmail 5192 invoked from network); 9 Nov 2001 04:00:45 -0000 Received: from dcdsl.ebox.com (HELO inspiron) (64.7.143.116) by net2.micro-automation.com with SMTP; 9 Nov 2001 04:00:45 -0000 Reply-To: From: "Dave Cramer" To: "'Guido'" , Subject: Re: JDBC Connection Date: Thu, 8 Nov 2001 22:55:42 -0500 Organization: Micro Automation Inc. Message-ID: <01e301c168d2$67a10030$c201a8c0@inspiron> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <20011108211458.A1109@localhost> X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Archive-Number: 200111/131 X-Sequence-Number: 2328 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