Thread: How to interact with the db using java
Hi all,
I am a very new user of postgreSQL. It was an easy task of setting up the server and database.But the problem I am having is to communicate with the db using a Java application program. Can anybody tell me how to connect to the db using JAVA.
Thanks in advance,
Shravan
Shravan writes: > I am a very new user of postgreSQL. It was an easy task of setting up > the server and database.But the problem I am having is to communicate > with the db using a Java application program. Can anybody tell me how to > connect to the db using JAVA. http://jdbc.postgresql.org/ -- Peter Eisentraut peter_e@gmx.net
First you must have java support enabled (--with-java) when you configure postgres for compiling. This will enable java support build the correct JDBC drivers based on your Java SDK version. Besides reading http://jdbc.postgresql.org/ as Peter pointed out, you may want to also look at the PostgreSQL developer documentation for the JDBC Interface http://www.postgresql.org/docs/current/interactive/jdbc.html or http://candle.pha.pa.us/main/writings/pgsql/sgml/jdbc.html which gives connection and programming examples.
----- Original Message -----From: ShravanSent: Tuesday, November 25, 2003 1:18 AMSubject: [ADMIN] How to interact with the db using javaHi all,I am a very new user of postgreSQL. It was an easy task of setting up the server and database.But the problem I am having is to communicate with the db using a Java application program. Can anybody tell me how to connect to the db using JAVA.Thanks in advance,Shravan