Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-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

pgsql-admin by date

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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group