Cannot build JDBC driver in 7.1.3.

Started by Wei Wangalmost 24 years ago2 messagesgeneral
Jump to latest
#1Wei Wang
Wei.Wang@cl.cam.ac.uk

Hi,

I cannot build my JDBC driver.

I have installed pgsql 7.1.3 some time ago. I am trying to set up JDBC driver.

From the documentation, I was told to ./configure --prefix xxx --with-java

But I couldn't remember whether I did that when I install pgsql. Is there any
way to check if it is included? (Well, at least my java program with
Class.forName("org.postgresql.Driver");
returns "Unable to load Driver Class".

The docu also suggests to run make in /src/interfaces/jdbc. It returns:
buildfile ../../../build.xml -Dmajor=7 -Dminor=1 -Dfullversion=7.1.3 -Ddef_pgport=5432make: buildfile: Command not found
make: [all] Error 127 (ignored)

An answer to an earlier question in email achive suggests to do the
./configure --with-java first. But I think the second attempt should be
independent from the ./configure one, isn't it?

Any idea what could be the reason?

Wei

#2Nick Fankhauser
nickf@ontko.com
In reply to: Wei Wang (#1)
Re: Cannot build JDBC driver in 7.1.3.

My understanding is that the only thing that "--with-java" does is to
compile the jdbc driver jar file. This means that if you didn't build it on
your original install, all you need to do now is to download the jar file
from http://jdbc.postgresql.org/download.html and put it in your classpath.
You may be able to find some useful hints for getting started here:
http://www.fankhausers.com/postgresql/jdbc/. The 7.2 driver will work fine
with a 7.1.3 backend.

Regards,

-Nick

--------------------------------------------------------------------------
Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788
Ray Ontko & Co. Software Consulting Services http://www.ontko.com/

Show quoted text

-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org]On Behalf Of Wei Wang
Sent: Monday, May 27, 2002 3:39 PM
To: pgsql-general@postgresql.org
Subject: [GENERAL] Cannot build JDBC driver in 7.1.3.

Hi,

I cannot build my JDBC driver.

I have installed pgsql 7.1.3 some time ago. I am trying to set up
JDBC driver.

From the documentation, I was told to ./configure --prefix xxx

--with-java
But I couldn't remember whether I did that when I install pgsql.
Is there any
way to check if it is included? (Well, at least my java program with
Class.forName("org.postgresql.Driver");
returns "Unable to load Driver Class".

The docu also suggests to run make in /src/interfaces/jdbc. It returns:
buildfile ../../../build.xml -Dmajor=7 -Dminor=1
-Dfullversion=7.1.3 -Ddef_pgport=5432make: buildfile: Command not found
make: [all] Error 127 (ignored)

An answer to an earlier question in email achive suggests to do the
./configure --with-java first. But I think the second attempt should be
independent from the ./configure one, isn't it?

Any idea what could be the reason?

Wei

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

http://www.postgresql.org/users-lounge/docs/faq.html