Re: Unable complie jdbc

From: "Dave Cramer" <Dave(at)micro-automation(dot)net>
To: "'Robert Finneran'" <rob(at)digitalskyscrapers(dot)com>, <vernonw(at)gatewaytech(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Unable complie jdbc
Date: 2002-01-03 12:30:22
Message-ID: 027601c19452$6abdfe70$8201a8c0@inspiron
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

The driver does not work for > jdk 1.3 as the jdbc spec has changed, you
will have to build, and run the driver under jdk 1.3

There are ways to make it run. Check the list archives for messages
regarding jdbc3.0/jdk1.4

Dave

-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Robert Finneran
Sent: Wednesday, January 02, 2002 11:20 PM
To: vernonw(at)gatewaytech(dot)com; pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] Unable complie jdbc

I'm using Ant 1.4.1, PostgreSQL 7.1.3 source, Sun jdk1.4.0 beta 3 and
I'm getting the same error messages (and more).

Then happens when try to build it from the top level or the interfaces
either using: $./configure --with-java and then: $gmake or using: $ant

Can anyone point me in the right direction?

Here's the errors I recieved when building with Ant:

*******************************************
*******************************************
*******************************************

Buildfile: build.xml

jar:

call:

prepare:

check_versions:

driver:
[echo] Configured build for the JDBC2 Enterprise edition driver.

compile:
[javac] Compiling 47 source files to
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/build
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Drive
r.ja
va:199: ';' expected
[javac] return ${major};
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Drive
r.ja
va:209: ';' expected
[javac] return ${minor};
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/xa/XA
Conn
ectionImpl.java:57: cannot resolve symbol
[javac] symbol : class RollbackException
[javac] location: package transaction
[javac] import javax.transaction.RollbackException;
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Drive
r.ja
va:199: cannot resolve symbol
[javac] symbol : variable $
[javac] location: class org.postgresql.Driver
[javac] return ${major};
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/Drive
r.ja
va:209: cannot resolve symbol
[javac] symbol : variable $
[javac] location: class org.postgresql.Driver
[javac] return ${minor};
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/xa/Cl
ient
Connection.java:70: org.postgresql.xa.ClientConnection should be
declared abstract; it does not define setHoldability(int) in
org.postgresql.xa.ClientConnection
[javac] final class ClientConnection
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2
/Sta
tement.java:25: org.postgresql.jdbc2.Statement should be declared
abstract; it does not define getMoreResults(int) in
org.postgresql.jdbc2.Statement
[javac] public class Statement extends org.postgresql.Statement
implements java.sql.Statement
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2
/Pre
paredStatement.java:32: org.postgresql.jdbc2.PreparedStatement should be
declared abstract; it does not define setURL(int,java.net.URL) in
org.postgresql.jdbc2.PreparedStatement
[javac] public class PreparedStatement extends Statement implements
java.sql.PreparedStatement
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2
/Cal
lableStatement.java:42: org.postgresql.jdbc2.CallableStatement should be
declared abstract; it does not define
registerOutParameter(java.lang.String,int) in
org.postgresql.jdbc2.CallableStatement
[javac] public class CallableStatement extends
org.postgresql.jdbc2.PreparedStatement implements
java.sql.CallableStatement
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2
/Con
nection.java:37: org.postgresql.jdbc2.Connection should be declared
abstract; it does not define setHoldability(int) in
org.postgresql.jdbc2.Connection
[javac] public class Connection extends org.postgresql.Connection
implements java.sql.Connection
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2
/Dat
abaseMetaData.java:35: org.postgresql.jdbc2.DatabaseMetaData should be
declared abstract; it does not define supportsSavepoints() in
org.postgresql.jdbc2.DatabaseMetaData
[javac] public class DatabaseMetaData implements
java.sql.DatabaseMetaData
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2
/Res
ultSet.java:60: org.postgresql.jdbc2.ResultSet should be declared
abstract; it does not define getURL(int) in
org.postgresql.jdbc2.ResultSet
[javac] public class ResultSet extends org.postgresql.ResultSet
implements java.sql.ResultSet
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/large
obje
ct/PGblob.java:26: org.postgresql.largeobject.PGblob should be declared
abstract; it does not define setBytes(long,byte[]) in
org.postgresql.largeobject.PGblob
[javac] public class PGblob implements java.sql.Blob
[javac] ^
[javac]
/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/large
obje
ct/PGclob.java:26: org.postgresql.largeobject.PGclob should be declared
abstract; it does not define setString(long,java.lang.String) in
org.postgresql.largeobject.PGclob
[javac] public class PGclob implements java.sql.Clob
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 14 errors

BUILD FAILED

/usr/local/src/postgresql-7.1.3/src/interfaces/jdbc/build.xml:99:
Compile failed, messages should have been provided.

Total time: 6 seconds

*******************************************
*******************************************
*******************************************

-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org]On Behalf Of Dave Cramer
Sent: Saturday, December 29, 2001 2:32 PM
To: vernonw(at)gatewaytech(dot)com; pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] Unable complie jdbc

You need to use ant

http://jakarta.apache.org/ant

Dave

-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Vernon Wu
Sent: Friday, December 28, 2001 11:59 PM
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [JDBC] Unable complie jdbc

Hi,

I am very new to PostgreSQL, only a few hours. I follow the instruction
on http://jdbc.postgresql.org/doc.html to build jdbc. The build process
fails due to the ${major} and ${minor} in the Driver.java file. They are
not Java syntax. Do I need to replace them with two intergers? If yes,
what they are?

Thanks in advance.

v.

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

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

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2002-01-03 13:30:17 FW: [HACKERS] Failure in timestamptz of JDBC of 7.2b4
Previous Message Bruce Momjian 2002-01-03 05:48:05 Re: JDBC 3.0 / JDK 1.4 build issues