Re: Error while compiling PostgreSQL with Java

From: Lew <lew(at)lwsc(dot)ehost-services(dot)com>
To: pgsql-admin(at)postgresql(dot)org(dot)pgsql-general(at)postgresql(dot)org
Subject: Re: Error while compiling PostgreSQL with Java
Date: 2007-11-25 18:16:12
Message-ID: TbednT5KhJ1xJtTanZ2dnUVZ_gidnZ2d@comcast.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Никоноров Григорий 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Никоноров Григорий 2007-11-25 18:18:40 Re: Error while compiling PostgreSQL with Java
Previous Message Stefan Kaltenbrunner 2007-11-25 18:08:44 Re: Error while compiling PostgreSQL with Java

Browse pgsql-general by date

  From Date Subject
Next Message Никоноров Григорий 2007-11-25 18:18:40 Re: Error while compiling PostgreSQL with Java
Previous Message Stefan Kaltenbrunner 2007-11-25 18:08:44 Re: Error while compiling PostgreSQL with Java