Thread: Compiling JDBC - problem

Compiling JDBC - problem

From
"Oliver Elphick"
Date:
Trying to build JDBC:
$ ant
Searching for build.xml ...
Buildfile: /usr3/home/olly/mypackages/pg7.1/postgresql-7.1beta5/build.xml

jar:

call:

prepare:   [mkdir] Created dir: /usr3/home/olly/mypackages/pg7.1/postgresql-7.1beta5/s
rc/interfaces/jdbc/build   [mkdir] Created dir: /usr3/home/olly/mypackages/pg7.1/postgresql-7.1beta5/s
rc/interfaces/jdbc/jars

check_versions:

driver:    [copy] Copying 1 files to /usr3/home/olly/mypackages/pg7.1/postgresql-7.1b
eta5/src/interfaces/jdbc/org/postgresql
Configured build for the JDBC2 edition driver.

compile:   [javac] Compiling 40 source files to /usr3/home/olly/mypackages/pg7.1/postg
resql-7.1beta5/src/interfaces/jdbc/build

BUILD FAILED

/usr3/home/olly/mypackages/pg7.1/postgresql-7.1beta5/src/interfaces/jdbc/build.
xml:99: Cannot use classic compiler, as it is not available


...bafflement!  What is "classic compiler"? The XML line begins "<javac".
I have jdk1.1 installed, which contains /usr/lib/jdk1.1/bin/javac.

What else am I missing?  (I am not experienced with Java.)



-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
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
========================================   "And now abideth faith, hope, love, these three; but      the greatest of
theseis love."                                     I Corinthians 13:13 
 




Re: Compiling JDBC - problem

From
Peter Mount
Date:
At 17:25 12/03/01 +0000, Oliver Elphick wrote:
>Trying to build JDBC:

snip
BUILD FAILED

>/usr3/home/olly/mypackages/pg7.1/postgresql-7.1beta5/src/interfaces/jdbc/build.
>xml:99: Cannot use classic compiler, as it is not available
>
>
>...bafflement!  What is "classic compiler"? The XML line begins "<javac".
>I have jdk1.1 installed, which contains /usr/lib/jdk1.1/bin/javac.
>
>What else am I missing?  (I am not experienced with Java.)

Ok from the ant docs:

·       classic (the standard compiler of JDK 1.1/1.2)
·       modern (the new compiler of JDK 1.3)
·       jikes (the ·    Jikes compiler)
·       jvc (the Command-Line Compiler from Microsoft's SDK for Java / 
Visual J++)

So classic is the JDK 1.1 & 1.2 compilers. I think they (Sun) made some 
major changes in 1.3.

What compiler are you using? Blackdown, kaffe? I know kaffe doesn't work 
with our source full stop (bug on their part).

Peter



Re: Compiling JDBC - problem

From
"Oliver Elphick"
Date:
Peter Mount wrote: >At 17:25 12/03/01 +0000, Oliver Elphick wrote: >What compiler are you using? Blackdown, kaffe? I
knowkaffe doesn't work  >with our source full stop (bug on their part).
 

It was kaffe; I've removed that in favour of jdk1.1, and get a little
bit further:


olly@linda$ export CLASSPATH=/usr/lib/jdk1.1/lib/classes.zip 
olly@linda$ export JAVA_HOME=/usr/lib/jdk1.1 
olly@linda$ 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/postgresql-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:
Missingterm.   [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:
Invalidexpression 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:
Interfacejava.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
havebeen provided.
 

Total time: 1 second

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
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
========================================   "And now abideth faith, hope, love, these three; but      the greatest of
theseis love."                                     I Corinthians 13:13