On Tue, 13 Jan 2004, Iain wrote:
> Hi All,
>
> This is hopefully a quick question.
>
> Do I need to re-build the postgres installation using the --with-java option
> in order to use JDBC? I got the JDBC driver and set the CLASSPATH as per the
> docs, but I wasn't clear on whether the --with-java option is still required
> given that I downloaded a pre-built driver.
The --with-java option is only if you want to build the driver yourself.
If you've downloaded a prebuilt binary there is no need for this.
> My little test program is currently failing with a ClassNotFoundException
> during the call:
>
> Class.forName("org.postgresql.Driver");
>
You have apparently not set the classpath correctly.
Kris Jurka