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 99C43DA445 for ; Thu, 6 Oct 2005 19:03:14 -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 33127-07 for ; Thu, 6 Oct 2005 22:03:09 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by svr1.postgresql.org (Postfix) with ESMTP id 1579EDA43D for ; Thu, 6 Oct 2005 19:03:09 -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 1ENdpN-0005Ue-HO; Fri, 07 Oct 2005 11:03:05 +1300 Message-ID: <43459F11.7060401@opencloud.com> Date: Fri, 07 Oct 2005 11:02:57 +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: Getting connected References: In-Reply-To: X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/29 X-Sequence-Number: 13960 Peter Cook wrote: > classpath = classpath + ";" + driverPath; > System.setProperty("java.class.path", classpath); I don't think this works; the system classloader has already been set up by this point so any change to the java.class.path property is likely to be ignored. If you want to modify the system classpath to include the driver jar, you'll have to do that by passing an appropriate -classpath (or CLASSPATH) setting to the JVM when you start it. -O