Re: JDBC driver build errors for 7.2.1 - Mailing list pgsql-jdbc
From | Dave Cramer |
---|---|
Subject | Re: JDBC driver build errors for 7.2.1 |
Date | |
Msg-id | 1024541804.4770.138.camel@inspiron.cramers Whole thread Raw |
In response to | JDBC driver build errors for 7.2.1 ("Simon Kitching" <simon@ecnetwork.co.nz>) |
List | pgsql-jdbc |
the driver won't build with jdk 1.4, just use the precompiled jar from the site jdbc.postgresql.org Dave On Wed, 2002-06-19 at 22:39, Simon Kitching wrote: > Attached is the build error I get when attempting to compile Postgresql > 7.2.1 > with the --with-java option. > > System: Red Hat Linus 7.2 > Java: Sun java version 1.4.0-b92 > Ant: version 1.4.1 > > Notes: > * the postgresql java code appears to be looking for > javax.transaction.RollbackException; > there is no such class according to the sun java documentation. > However there > is a class javax.transaction.TransactionRolledbackException. > * there appear to be a number of other unrelated errors in the > distributed java code. > * this may be the same problem reported by Paul Agarwal (15 Jun 200) > > Related info: > * email from Barry Lind dated 18 Jun 2002 notes that prebuilt jdbc > driver releases > can be retrieved from http://jdbc.postgresql.org/download.html. This > page mentions > that the jdbc driver runs but does not build under java1.4. No > explanation is given > for why it won't build or when/if this is going to be fixed. > I have tried out this binary driver under java1.4 and it connects to > the 7.2.1 > postgresql instance ok. > > Cheers, > > Simon > > ------------------------------------------------------------------------ > ------ > > make[3]: Entering directory > `/root/postgresql/postgresql-7.2.1/src/interfaces/jdbc' > /usr/local/jakarta/ant-current/bin/ant -buildfile ./build.xml all \ > -Dmajor=7 -Dminor=2 -Dfullversion=7.2.1 -Ddef_pgport=5432 > Buildfile: ./build.xml > > all: > > prepare: > [mkdir] Created dir: > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/build > [mkdir] Created dir: > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/jars > > check_versions: > > driver: > [copy] Copying 1 file to > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql > [echo] Configured build for the JDBC2 Enterprise edition driver > > compile: > [javac] Compiling 53 source files to > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/build > [javac] > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/xa/ > XAConnectionImpl.java:57: cannot resolve symbol > [javac] symbol : class RollbackException > [javac] location: package transaction > [javac] import javax.transaction.RollbackException; > [javac] ^ > [javac] > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdb > c2/ResultSet.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] > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdb > c2/Statement.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] > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdb > c2/Connection.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] > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdb > c2/DatabaseMetaData.java:40: 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] > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdb > c2/PreparedStatement.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] > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdb > c2/CallableStatement.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] > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/lar > geobject/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] > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/lar > geobject/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] > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/xa/ > ClientConnection.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] Note: Some input files use or override a deprecated API. > [javac] Note: Recompile with -deprecation for details. > [javac] 10 errors > > BUILD FAILED > > /root/postgresql/postgresql-7.2.1/src/interfaces/jdbc/build.xml:72: > Compile failed, messages should have been provided. > > Total time: 7 seconds > make[3]: *** [all] Error 1 > make[3]: Leaving directory > `/root/postgresql/postgresql-7.2.1/src/interfaces/jdbc' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/root/postgresql/postgresql-7.2.1/src/interfaces' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/root/postgresql/postgresql-7.2.1/src' > make: *** [all] Error 2 > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > >
pgsql-jdbc by date: