Re: j2sdk1.4.0 jdbc compile errors

From: Barry Lind <barry(at)xythos(dot)com>
To: Mark Price <prim0001(at)unf(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: j2sdk1.4.0 jdbc compile errors
Date: 2002-04-17 05:38:20
Message-ID: 3CBD0A4C.2080403@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mark,

The jdbc driver currently does not build under jdk1.4. You will either
need to download a prebuilt jar, or build under jdk1.3. Either way a
the driver build under 1.3 will run fine under 1.4 as long as you don't
try to use any of the new functionality available in 1.4.

thanks,
--Barry

Mark Price wrote:
> Hello,
> I am attempting to build postgresql-7.2.1 with the jdbc,
> using j2sdk1.4.0 to compile. It is not working, as detailed
> in the attached file.
> If building with sun's sdk v. 1.3.1, it builds fine without
> changing any configuration (classpath, etc.), just type
> ./configure --use-java
> make
>
> I have a question or two:
> Is it advantageous to use j2re1.3.1 over 1.4.0 after
> having built with 1.3.1?
> Is it feasable, and/or a good idea to build with
> j2sdk1.4.0, and is that a stable, reliable option?
>
> Thanks,
> Mark Price
>
>
> ------------------------------------------------------------------------
>
> Script started on Mon Apr 15 19:27:21 2002
> mprice(at)cricket1:~/pg/postgresql-7.2.1/src/interfaces/jdbc/org$ make
>
> make: *** No targets specified and no makefile found. Stop.
>
> mprice(at)cricket1:~/pg/postgresql-7.2.1/src/interfaces/jdbc/org$ cd ../../../
>
> mprice(at)cricket1:~/pg/postgresql-7.2.1/src$ cd interfaces/jdbc
>
> mprice(at)cricket1:~/pg/postgresql-7.2.1/src/interfaces/jdbc$ make
>
> /usr/bin/ant -buildfile ./build.xml all \
>
> -Dmajor=7 -Dminor=2 -Dfullversion=7.2.1 -Ddef_pgport=5432
>
> Buildfile: ./build.xml
>
>
> all:
>
>
> prepare:
>
>
> check_versions:
>
>
> driver:
>
> [echo] Configured build for the JDBC2 Enterprise edition driver
>
>
> compile:
>
> [javac] Compiling 37 source files to /home/mprice/pg/postgresql-7.2.1/src/interfaces/jdbc/build
>
> [javac] /home/mprice/pg/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/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] /home/mprice/pg/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/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] /home/mprice/pg/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/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] /home/mprice/pg/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/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] /home/mprice/pg/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/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] /home/mprice/pg/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/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] /home/mprice/pg/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/largeobject/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] /home/mprice/pg/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/largeobject/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] /home/mprice/pg/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] 9 errors
>
>
> BUILD FAILED
>
>
> /home/mprice/pg/postgresql-7.2.1/src/interfaces/jdbc/build.xml:72: Compile failed, messages should have been provided.
>
>
> Total time: 9 seconds
>
> make: *** [all] Error 1
>
> mprice(at)cricket1:~/pg/postgresql-7.2.1/src/interfaces/jdbc$ exit
> Script done on Mon Apr 15 19:27:47 2002
>
>
> ------------------------------------------------------------------------
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message pgsql-gen Newsgroup (@Basebeans.com) 2002-04-17 07:25:01 Poor performance with "large" table.
Previous Message Curt Sampson 2002-04-17 03:27:49 Re: Mass-Data question