Search Postgresql Archives

Re: Error while compiling PostgreSQL with Java

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

              http://www.postgresql.org/docs/faq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux