From: Lew <lew@lwsc.ehost-services.com>
To: pgsql-admin@postgresql.org.pgsql-general
Subject: Re: Error while compiling PostgreSQL with Java
Date: Sun, 25 Nov 2007 13:16:12 -0500
Message-ID: <TbednT5KhJ1xJtTanZ2dnUVZ_gidnZ2d@comcast.com> (raw)
In-Reply-To: <op.t2czb2azlg1ko4@america>
References: <op.t2cwjavnlg1ko4@america>
<Pine.BSO.4.64.0711251217290.19895@leary.csoft.net>
<op.t2czb2azlg1ko4@america>
Никоноров Григорий 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: lew@lwsc.ehost-services.com, pgsql-admin@postgresql.org.pgsql-general
Subject: Re: Error while compiling PostgreSQL with Java
In-Reply-To: <TbednT5KhJ1xJtTanZ2dnUVZ_gidnZ2d@comcast.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox