X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 40B10D9D1F for ; Sat, 8 Oct 2005 06:47:20 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 67989-06 for ; Sat, 8 Oct 2005 09:47:15 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by svr1.postgresql.org (Postfix) with ESMTP id 19A1BD950A for ; Sat, 8 Oct 2005 06:47:15 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EOBIS-0001Ep-Qx; Sat, 08 Oct 2005 22:47:16 +1300 Message-ID: <434795A2.3080606@opencloud.com> Date: Sat, 08 Oct 2005 22:47:14 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Cook Cc: pgsql-jdbc@postgresql.org Subject: Re: Still baffled by a CONNECTion problem References: In-Reply-To: X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 required=5 tests=[AWL=0.008] X-Spam-Level: X-Archive-Number: 200510/42 X-Sequence-Number: 13973 Peter Cook wrote: > catch (ClassNotFoundException cnfe) > { > System.out.println("ClassNotFoundException."); > } > } > > The output from this code is as follows: > Classpath = C:\Eclipse\Workspace\Test > Classpath = C:\Eclipse\Workspace\Test;C:\Program > Files\PostgreSQL\8.0\jdbc\postgresql-8.0-311.jdbc3.jar > Drivers = C:\Program Files\PostgreSQL\8.0\jdbc > DriverDir is a directory > Driver is a file > > So: > - for some unknown reason my Eclipse editor has reset my CLASSPATH > - but despite this I am able to programmatically adjust the CLASSPATH > property to suit > - Java recognized the directory where I have installed the JAR file as a > valid directory and is able to locate the relevant driver file > > WHY WON’T IT LOAD the DRIVER????? Your sample output did not include the ClassNotFoundException output, so it seems to me that the driver actually loaded fine? -O