Re: Getting connected - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Getting connected
Date
Msg-id 43459F11.7060401@opencloud.com
Whole thread Raw
In response to Getting connected  ("Peter Cook" <ttpcook@hotmail.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: I have a problem of abstraction...
Next
From: "Kevin Grittner"
Date:
Subject: Re: I have a problem of abstraction...