Re: Error while compiling PostgreSQL with Java

Поиск
Список
Период
Сортировка
От Lew
Тема Re: Error while compiling PostgreSQL with Java
Дата
Msg-id TbednT5KhJ1xJtTanZ2dnUVZ_gidnZ2d@comcast.com
обсуждение исходный текст
Ответ на Error while compiling PostgreSQL with Java  (Никоноров Григорий <smex@mail.ru>)
Список pgsql-admin
Никоноров Григорий wrote:
> Thanks for your answer.When i [sic] download this "JDBC4 Postgresql Driver,
> Version 8.2-506" driver what should i do next to configure PostgreSQL
> with it ?

Place the JAR containing the driver in the classpath for your Java
application.  In the Java program be sure to load the org.postgresql.Driver
class and establish the connection to the database via a URL such as
jdbc:postgresql://yourhost:5432/yourdb.  (JNDI is another approach which does
these steps via a declarative approach.)

If you had read any of the PG JDBC documentation
<http://jdbc.postgresql.org/documentation/82/index.html>
you might have found instructions there.  Chapters 2 and 3 of the referenced
link (from the very same site from which you got the driver) go into some detail.

<http://java.sun.com/> has some excellent information about JDBC in general.
<http://java.sun.com/docs/books/tutorial/jdbc/index.html>

SunIYF, PGIYF (in this case, jdbc.postgresql.org IYF) and GIYF.

--
Lew

В списке pgsql-admin по дате отправления:

Предыдущее
От: Chris Browne
Дата:
Сообщение: Re: Migrating from 32 to 64 bit
Следующее
От: "Medi Montaseri"
Дата:
Сообщение: Re: Migrating from 32 to 64 bit