Re: getting JDBC connection working

From: Kris Jurka <books(at)ejurka(dot)com>
To: Iain <iain(at)mst(dot)co(dot)jp>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: getting JDBC connection working
Date: 2004-01-13 05:52:28
Message-ID: Pine.LNX.4.33.0401130050410.14666-100000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Iain 2004-01-13 06:27:20 Re: getting JDBC connection working
Previous Message Iain 2004-01-13 05:32:46 getting JDBC connection working