Stefan Gybas wrote: >Oliver Elphick wrote: > >> /usr3/home/olly/mypackages/pg7.1/postgresql-7.1beta5/src/interfaces/ >> jdbc/build.xml:99: Cannot use classic compiler, as it is not available > >Try using the jikes compiler instead, i.e. add (or change) the >build.compiler property in this section: > > <property name="build.compiler" value="jikes"/> > >> ...bafflement! What is "classic compiler"? The XML line begins "<javac" > >That's the integradted compiler in JDK 1.1. This compiler is not >available when you use the Kaffe JVM. > >> I have jdk1.1 installed, which contains /usr/lib/jdk1.1/bin/javac. > >jdk1.1 is non-free, so the postgres source package whould have to move >to contrib if it build depends on it. Please try kaffe and jikes (see >e.g. the Tomcat package on how to build with Ant and free tools only), >and if that fails I'll continue to maintain the libpgjava package >as a seperate package in contrib.
Peter Mount states categorically that kaffe won't compile PostgreSQL JDBC because of a kaffe bug. It certainly doesn't work for me. With jdk1.1 (and kaffe removed) I get: [EMAIL PROTECTED] export CLASSPATH=/usr/lib/jdk1.1/lib/classes.zip [EMAIL PROTECTED] export JAVA_HOME=/usr/lib/jdk1.1 [EMAIL PROTECTED] ant Searching for build.xml ... Buildfile: /usr3/home/olly/mypackages/pg7.1/postgresql-7.1beta5/build.xml jar: call: prepare: check_versions: driver: Configured build for the JDBC1 edition driver. compile: [javac] Compiling 2 source files to /usr3/home/olly/mypackages/pg7.1/postgr esql-7.1beta5/src/interfaces/jdbc/build [javac] /usr3/home/olly/mypackages/pg7.1/postgresql-7.1beta5/src/interfaces /jdbc/org/postgresql/jdbc1/Statement.java:291: Missing term. [javac] if (result != null) && ((org.postgresql.ResultSet)result. reallyResultSet()) [javac] ^ [javac] /usr3/home/olly/mypackages/pg7.1/postgresql-7.1beta5/src/interfaces /jdbc/org/postgresql/jdbc1/Statement.java:291: Invalid expression statement. [javac] if (result != null) && ((org.postgresql.ResultSet)result. reallyResultSet()) [javac] ^ [javac] /usr3/home/olly/mypackages/pg7.1/postgresql-7.1beta5/src/interfaces /jdbc/org/postgresql/jdbc1/Statement.java:291: ';' expected. [javac] if (result != null) && ((org.postgresql.ResultSet)result. reallyResultSet()) [javac] ^ [javac] /usr3/home/olly/mypackages/pg7.1/postgresql-7.1beta5/src/interfaces /jdbc/org/postgresql/largeobject/PGclob.java:26: Interface java.sql.Clob of class org.postgresql.largeobject.PGclob not found. [javac] public class PGclob implements java.sql.Clob [javac] ^ [javac] 4 errors BUILD FAILED /usr3/home/olly/mypackages/pg7.1/postgresql-7.1beta5/src/interfaces/jdbc/build. xml:99: Compile failed, messages should have been provided. Total time: 1 second I can't see anything wrong with the code and assume it must be something to do with my setup. I've no idea what, though. -- Oliver Elphick [EMAIL PROTECTED] Isle of Wight http://www.lfix.co.uk/oliver PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47 GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "Who is like Thee among the gods, O Lord? Who is like Thee, majestic in holiness, awesome in praises, working wonders?" Exodus 15:11