Re: getting JDBC connection working

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: getting JDBC connection working
Дата
Msg-id Pine.LNX.4.33.0401130050410.14666-100000@leary.csoft.net
обсуждение исходный текст
Ответ на getting JDBC connection working  ("Iain" <iain@mst.co.jp>)
Список 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 по дате отправления:

Предыдущее
От: "Iain"
Дата:
Сообщение: getting JDBC connection working
Следующее
От: "Iain"
Дата:
Сообщение: Re: getting JDBC connection working