Re: getting JDBC connection working - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: getting JDBC connection working
Date
Msg-id Pine.LNX.4.33.0401130050410.14666-100000@leary.csoft.net
Whole thread Raw
In response to getting JDBC connection working  ("Iain" <iain@mst.co.jp>)
List pgsql-jdbc

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



pgsql-jdbc by date:

Previous
From: "Iain"
Date:
Subject: getting JDBC connection working
Next
From: "Iain"
Date:
Subject: Re: getting JDBC connection working