Re: compile of jdbc driver failed - jdk 1.4.0_01 - Mailing list pgsql-jdbc
From | Dave Cramer |
---|---|
Subject | Re: compile of jdbc driver failed - jdk 1.4.0_01 |
Date | |
Msg-id | 1031613781.1955.0.camel@inspiron.cramers Whole thread Raw |
In response to | Re: compile of jdbc driver failed - jdk 1.4.0_01 (Barry Lind <barry@xythos.com>) |
List | pgsql-jdbc |
Make sure you do a make clean before you do the build DAve On Mon, 2002-09-09 at 12:52, Barry Lind wrote: > Fred, > > Are you sure your classpath is set correctly? It looks to me like your > classpath is pulling in either an old source tree or an old postgres > jdbc jar file. The errors you are getting just don't make sense when > looking at the source. > > thanks, > --Barry > > > Fred Tsang wrote: > > Hi Barry, Dave, > > > > Here is the output from ant. Note that this is a cvs grab from last week > > sometime. So if I want to include the javax.sql packages, do I just > include > > j2ee.jar in my classpath? > > > > Buildfile: build.xml > > > > all: > > > > prepare: > > > > check_versions: > > > > driver: > > [echo] Configured build for the JDBC3 edition driver > > > > compile: > > [javac] Compiling 21 source files to > > /zips/postgres-cvs/pgsql/src/interfaces/jdbc/build > > [javac] > > > /zips/postgres-cvs/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJd > > bc2ResultSet.java:222: cannot resolve symbol > > [javac] symbol : constructor Array > > (org.postgresql.PGConnection,int,org.postgresql.Field,java.sql.ResultSet) > > [javac] location: class org.postgresql.jdbc2.Array > > [javac] return (java.sql.Array) new org.postgresql.jdbc2.Array( > > connection, i, fields[i - 1], (java.sql.ResultSet) this ); > > [javac] ^ > > [javac] > > > /zips/postgres-cvs/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJd > > bc2ResultSet.java:379: incompatible types > > [javac] found : java.sql.Statement > > [javac] required: org.postgresql.jdbc2.Statement > > [javac] return statement; > > [javac] ^ > > [javac] > > > /zips/postgres-cvs/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJd > > bc2ResultSet.java:499: incompatible types > > [javac] found : java.sql.PreparedStatement > > [javac] required: org.postgresql.jdbc2.PreparedStatement > > [javac] deleteStatement = ((java.sql.Connection) > > connection).prepareStatement(deleteSQL.toString()); > > [javac] > > ^ > > [javac] > > > /zips/postgres-cvs/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJd > > bc2ResultSet.java:549: incompatible types > > [javac] found : java.sql.PreparedStatement > > [javac] required: org.postgresql.jdbc2.PreparedStatement > > [javac] insertStatement = ((java.sql.Connection) > > connection).prepareStatement(insertSQL.toString()); > > [javac] > > ^ > > [javac] > > > /zips/postgres-cvs/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJd > > bc2ResultSet.java:563: inconvertible types > > [javac] found : org.postgresql.jdbc2.PreparedStatement > > [javac] required: org.postgresql.jdbc2.AbstractJdbc2Statement > > [javac] long insertedOID = ((AbstractJdbc2Statement) > > insertStatement).getLastOID(); > > [javac] ^ > > [javac] > > > /zips/postgres-cvs/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJd > > bc2ResultSet.java:919: incompatible types > > [javac] found : java.sql.PreparedStatement > > [javac] required: org.postgresql.jdbc2.PreparedStatement > > [javac] selectStatement = ((java.sql.Connection) > > connection).prepareStatement(selectSQL.toString()); > > [javac] > > ^ > > [javac] > > > /zips/postgres-cvs/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJd > > bc2ResultSet.java:987: incompatible types > > [javac] found : java.sql.PreparedStatement > > [javac] required: org.postgresql.jdbc2.PreparedStatement > > [javac] updateStatement = ((java.sql.Connection) > > connection).prepareStatement(updateSQL.toString()); > > [javac] > > ^ > > [javac] > > > /zips/postgres-cvs/pgsql/src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJd > > bc3ResultSet.java:15: cannot resolve symbol > > [javac] symbol : constructor AbstractJdbc2ResultSet > > > (org.postgresql.PGConnection,java.sql.Statement,org.postgresql.Field[],java. > > util.Vector,java.lang.String,int,long,boolean) > > [javac] location: class org.postgresql.jdbc2.AbstractJdbc2ResultSet > > [javac] super (conn, statement, fields, tuples, status, > updateCount, > > insertOID, binaryCursor); > > [javac] ^ > > [javac] > > > /zips/postgres-cvs/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJd > > bc2Statement.java:51: inconvertible types > > [javac] found : org.postgresql.jdbc2.AbstractJdbc2Statement > > [javac] required: org.postgresql.jdbc2.Statement > > [javac] > > ((AbstractJdbc2ResultSet)result).setStatement((Statement)this); > > [javac] > > ^ > > [javac] > > > /zips/postgres-cvs/pgsql/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3Resul > > tSet.java:13: getStatement() in > org.postgresql.jdbc2.AbstractJdbc2ResultSet > > cannot implement getStatement() in java.sql.ResultSet; attempting to use > > incompatible return type > > [javac] found : org.postgresql.jdbc2.Statement > > [javac] required: java.sql.Statement > > [javac] public class Jdbc3ResultSet extends > > org.postgresql.jdbc3.AbstractJdbc3ResultSet implements java.sql.ResultSet > > [javac] ^ > > [javac] > > > /zips/postgres-cvs/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java > > :49: inconvertible types > > [javac] found : org.postgresql.jdbc2.ResultSet > > [javac] required: org.postgresql.jdbc2.AbstractJdbc2ResultSet > > [javac] this.rawString = > > ((AbstractJdbc2ResultSet)rs).getFixedString(idx); > > [javac] ^ > > [javac] Note: Some input files use or override a deprecated API. > > [javac] Note: Recompile with -deprecation for details. > > [javac] 11 errors > > > > BUILD FAILED > > file:/zips/postgres-cvs/pgsql/src/interfaces/jdbc/build.xml:104: Compile > > failed; see the compiler error output for details. > > > > Total time: 10 seconds > > > > > > > >>-----Original Message----- > >>From: Barry Lind [mailto:barry@xythos.com] > >>Sent: 06 September 2002 17:53 > >>To: fred@avg.nu > >>Cc: Dave Cramer; pgsql-jdbc@postgresql.org > >>Subject: Re: [JDBC] compile of jdbc driver failed - jdk 1.4.0_01 > >> > >> > >>Fred, > >> > >>Can you send the entire ant output? > >> > >>To your original problem. The 7.2 code doesn't support datasources. > >> Thus the errors you were seeing. The 7.3 code does, but I think it > >>only supports them in the jdbc2 build (and then only when the javax.sql > >>package is available). The person who contributed the datasource logic > >>only coded it into the jdbc2 build. He also seems to have disappeared > >>before submitting any documentation updates, so I really don't know how > >>it works. I think your best bet may be to build the 7.3 code under a > >>1.3 jdk with the optional javax.sql package installed from J2EE. This > >>should build the driver with datasource support included. > >> > >>thanks, > >>--Barry > >> > > > > > > > > > > ---------------------------(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: