JDBC

From: Marcelo Pereira <gandalf(at)sum(dot)desktop(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: JDBC
Date: 2003-01-14 12:26:33
Message-ID: Pine.LNX.4.20.0301140957030.21514-100000@ni.hmmg.sp.gov.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-jdbc

Hi All,

I have been working to make PostgreSQL acessible from java. I have
downloaded and instaled the following:

- j2sdk-1_4_1_01-linux-i586.bin
- jakarta-ant-1.5.1-src.tar.gz

and compiled PostgreSQL as:

# ./configure --with-java
# make
# make install

The driver (postgresql.jar) was compiled properly, and I have configured
some variables:

# export CLASSPATH=/usr/local/pgsql/share/java/postgresql.jar:.
# export ANT_HOME=/usr/local/ant
# export JAVA_HOME=/usr/local/j2sdk1.4.1
# export PATH=${JAVA_HOME}:${PATH}:${ANT_HOME}/bin

So I think the environment is almost good, but I can't compile a source
that use jdbc.

Would you send to me a really simple example java source code using jdbc,
acessing a simple table at PostgreSQL? I'm really having problem with
this.

Thanks in advance and
Best Regards,

Marcelo Pereira

-- Remember that only God and ^[:w saves.
__
(_.\ © Marcelo Pereira |
/ / ___ marcelo(at)pereira(dot)com |
/ (_/ _ \__ [Math|99]-IMECC |
_______\____/_\___)___Unicamp_______________/

Responses

  • Re: JDBC at 2003-01-14 18:50:02 from Jeffrey Melloy

Browse pgsql-general by date

  From Date Subject
Next Message Justin Clift 2003-01-14 13:08:41 Re: PostgreSQL on Windows
Previous Message pascal bérest 2003-01-14 11:19:39 time to restore a database

Browse pgsql-jdbc by date

  From Date Subject
Next Message Marcelo Pereira 2003-01-14 13:03:27 Using JDBC
Previous Message Felipe Schnack 2003-01-14 10:34:38 Re: binary data