Re: Error while compiling PostgreSQL with Java - Mailing list pgsql-admin

From Lew
Subject Re: Error while compiling PostgreSQL with Java
Date
Msg-id TbednT5KhJ1xJtTanZ2dnUVZ_gidnZ2d@comcast.com
Whole thread Raw
In response to Error while compiling PostgreSQL with Java  (Никоноров Григорий <smex@mail.ru>)
List 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 by date:

Previous
From: Chris Browne
Date:
Subject: Re: Migrating from 32 to 64 bit
Next
From: "Medi Montaseri"
Date:
Subject: Re: Migrating from 32 to 64 bit