Thread: ./configure --with-java fails

./configure --with-java fails

From
"Markus Wollny"
Date:
Hi!
 
I am trying to build PostgreSQL 7.4.3 with Java enabled; I've got Apache Ant version 1.5 and j2sdk1.4.1_05 installed:
 
Verifiying ant:
# which javac
/usr/java/j2sdk1.4.1_05/bin/javac
# ant -version
Apache Ant version 1.5 compiled on October 15 2002

Verifying java-compiler:
 # which javac
/usr/java/j2sdk1.4.1_05/bin/javac

Verifying environment variables:
# export|grep java
declare -x JAVA_BINDIR="/usr/java/j2sdk1.4.1_05/bin"
declare -x JAVA_HOME="/usr/java/j2sdk1.4.1_05"
declare -x JAVA_ROOT="/usr/java/j2sdk1.4.1_05"
declare -x JRE_HOME="/usr/java/j2sdk1.4.1_05/jre"
declare -x PATH="/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/kde3/bin:/usr/java/j2sdk1.4.1_05/bin:/usr/java/j2sdk1.4.1_05/jre/bin"

I ran the ./configure-script as follows:
 
./configure --prefix=/opt/pgsql --datadir=/var/lib/pgsql/data/base --enable-locale --with-perl --with-java --enable-odbc --enable-syslog
The last lines of configure-output are
 
checking whether to build Java/JDBC tools... yes
checking for jakarta-ant... no
checking for ant... /usr/bin/ant
checking whether /usr/bin/ant works... no
configure: error: ant does not work
The configure.log contains the following relevant lines:
 
configure:3139: checking whether to build Java/JDBC tools
configure:3150: result: yes
configure:3157: checking for jakarta-ant
configure:3190: result: no
configure:3157: checking for ant
configure:3175: found /usr/bin/ant
configure:3187: result: /usr/bin/ant
configure:3198: checking whether /usr/bin/ant works
configure:3222: /usr/bin/ant -buildfile conftest.xml 1>&2
Buildfile: conftest.xml
 
conftest:
    [javac] Compiling 1 source file
    [javac] Modern compiler not found - looking for classic compiler
 
BUILD FAILED
file:/usr/src/postgresql/postgresql-7.4.3/conftest.xml:3: Cannot use classic compiler, as it is not available.  A common solution is to set the environment variable JAVA_HOME to your jdk directory.
 
Total time: 2 seconds
configure:3225: $? = 1
configure: failed java program was:
public class conftest {
    int testmethod(int a, int b) {
        return a + b;
    }
}
configure: failed build file was:
<project name="conftest" default="conftest">
 <target name="conftest">
  <javac srcdir="." includes="conftest.java">
  </javac>
 </target>
</project>
configure:3241: result: no
configure:3245: error: ant does not work

Help would be very much appreciated; on second thoughts: Is it at all necessary to build the JDBC-driver myself or can I safely use the precompiled .jar-file from http://jdbc.postgresql.org/download.html on my clients? And if I compile without the --with-java, will the resulting PostgreSQL-server-installation have any shortcomings in integrating with JDBC-applications? What exactly are the "Java/JDBC tools" aside from the JDBC-driver jar-file?
 
Kind regards
 
  Markus
 

Re: ./configure --with-java fails

From
Kris Jurka
Date:

On Tue, 6 Jul 2004, Markus Wollny wrote:

> I am trying to build PostgreSQL 7.4.3 with Java enabled; I've got Apache
> Ant version 1.5 and j2sdk1.4.1_05 installed:
>
>     [javac] Modern compiler not found - looking for classic compiler
>
> BUILD FAILED
> file:/usr/src/postgresql/postgresql-7.4.3/conftest.xml:3: Cannot use
> classic compiler, as it is not available.  A common solution is to set
> the environment variable JAVA_HOME to your jdk directory.

Your setup looks good, perhaps changing the configure script to run ant
with -debug would help?

> Help would be very much appreciated; on second thoughts: Is it at all
> necessary to build the JDBC-driver myself or can I safely use the
> precompiled .jar-file from http://jdbc.postgresql.org/download.html on
> my clients? And if I compile without the --with-java, will the resulting
> PostgreSQL-server-installation have any shortcomings in integrating with
> JDBC-applications? What exactly are the "Java/JDBC tools" aside from the
> JDBC-driver jar-file?

Configuring with --with-java does nothing other than build the JDBC
driver.  There used to be some additional java tools, but these were
removed before the 7.4 release.  The provided jar files are no different
than what you would build yourself so it's fine to use them.

Kris Jurka


Re: ./configure --with-java fails

From
"Markus Wollny"
Date:
> -----Ursprüngliche Nachricht-----
> Von: pgsql-general-owner@postgresql.org
> [mailto:pgsql-general-owner@postgresql.org] Im Auftrag von Kris Jurka
> Gesendet: Dienstag, 6. Juli 2004 13:11
> An: Markus Wollny
> Cc: pgsql-general@postgresql.org
> Betreff: Re: [GENERAL] ./configure --with-java fails

> Your setup looks good, perhaps changing the configure script
> to run ant with -debug would help?

Thanks, now I got loads and loads of debug output, so I'm still confused, albeit on a higher level...  :)

<!--- config.log excerpt starts here --->
configure:3222: /usr/bin/ant -debug -buildfile conftest.xml 1>&2
Apache Ant version 1.5 compiled on October 15 2002
Buildfile: conftest.xml
Detected Java version: 1.3 in: /usr/lib/SunJava2-1.3.1/jre
Detected OS: Linux
 +User task: propertyfile     org.apache.tools.ant.taskdefs.optional.PropertyFile
 +User task: vsscheckin     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKIN
 +User task: sql     org.apache.tools.ant.taskdefs.SQLExec
 +User task: cvspass     org.apache.tools.ant.taskdefs.CVSPass
Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Reopen) for task p4reopen
 +User task: csc     org.apache.tools.ant.taskdefs.optional.dotnet.CSharp
 +User task: dirname     org.apache.tools.ant.taskdefs.Dirname
Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.WLRun) for task wlrun
Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Label) for task p4label
Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Revert) for task p4revert
 +User task: replaceregexp     org.apache.tools.ant.taskdefs.optional.ReplaceRegExp
 +User task: get     org.apache.tools.ant.taskdefs.Get
 +User task: jjtree     org.apache.tools.ant.taskdefs.optional.javacc.JJTree
 +User task: sleep     org.apache.tools.ant.taskdefs.Sleep
 +User task: jarlib-display     org.apache.tools.ant.taskdefs.optional.extension.JarLibDisplayTask
 +User task: dependset     org.apache.tools.ant.taskdefs.DependSet
 +User task: zip     org.apache.tools.ant.taskdefs.Zip
 +User task: patch     org.apache.tools.ant.taskdefs.Patch
 +User task: jspc     org.apache.tools.ant.taskdefs.optional.jsp.JspC
 +User task: style     org.apache.tools.ant.taskdefs.XSLTProcess
 +User task: test     org.apache.tools.ant.taskdefs.optional.Test
 +User task: tstamp     org.apache.tools.ant.taskdefs.Tstamp
 +User task: unwar     org.apache.tools.ant.taskdefs.Expand
 +User task: vsshistory     org.apache.tools.ant.taskdefs.optional.vss.MSVSSHISTORY
Could not load class (org.apache.tools.ant.taskdefs.optional.IContract) for task icontract
 +User task: cvschangelog     org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask
Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Submit) for task p4submit
 +User task: ccmcheckin     org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckin
Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Change) for task p4change
 +User task: bzip2     org.apache.tools.ant.taskdefs.BZip2
Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Delete) for task p4delete
 +User task: vssadd     org.apache.tools.ant.taskdefs.optional.vss.MSVSSADD
 +User task: javadoc     org.apache.tools.ant.taskdefs.Javadoc
 +User task: translate     org.apache.tools.ant.taskdefs.optional.i18n.Translate
 +User task: signjar     org.apache.tools.ant.taskdefs.SignJar
Could not load class (org.apache.tools.ant.taskdefs.optional.ide.VAJLoadProjects) for task vajload
 +User task: jarlib-available     org.apache.tools.ant.taskdefs.optional.extension.JarLibAvailableTask
 +User task: WsdlToDotnet     org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
 +User task: buildnumber     org.apache.tools.ant.taskdefs.BuildNumber
 +User task: jpcovmerge     org.apache.tools.ant.taskdefs.optional.sitraka.CovMerge
 +User task: ejbjar     org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
 +User task: war     org.apache.tools.ant.taskdefs.War
Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.StarTeamList) for task stlist
 +User task: rename     org.apache.tools.ant.taskdefs.Rename
 +User task: sequential     org.apache.tools.ant.taskdefs.Sequential
 +User task: serverdeploy     org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy
 +User task: property     org.apache.tools.ant.taskdefs.Property
 +User task: move     org.apache.tools.ant.taskdefs.Move
 +User task: copydir     org.apache.tools.ant.taskdefs.Copydir
 +User task: cccheckin     org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckin
 +User task: wljspc     org.apache.tools.ant.taskdefs.optional.jsp.WLJspc
 +User task: fixcrlf     org.apache.tools.ant.taskdefs.FixCRLF
Could not load class (org.apache.tools.ant.taskdefs.optional.net.TelnetTask) for task telnet
 +User task: sosget     org.apache.tools.ant.taskdefs.optional.sos.SOSGet
 +User task: pathconvert     org.apache.tools.ant.taskdefs.PathConvert
 +User task: record     org.apache.tools.ant.taskdefs.Recorder
Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Sync) for task p4sync
 +User task: exec     org.apache.tools.ant.taskdefs.ExecTask
Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Edit) for task p4edit
 +User task: manifest     org.apache.tools.ant.taskdefs.ManifestTask
Could not load class (org.apache.tools.ant.taskdefs.optional.metamata.MAudit) for task maudit
Could not load class (org.apache.tools.ant.taskdefs.optional.ANTLR) for task antlr
Could not load class (org.apache.tools.ant.taskdefs.optional.NetRexxC) for task netrexxc
Could not load class (org.apache.tools.ant.taskdefs.optional.net.FTP) for task ftp
 +User task: jpcovreport     org.apache.tools.ant.taskdefs.optional.sitraka.CovReport
 +User task: execon     org.apache.tools.ant.taskdefs.ExecuteOn
 +User task: ccmcheckout     org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckout
 +User task: ant     org.apache.tools.ant.taskdefs.Ant
 +User task: xmlvalidate     org.apache.tools.ant.taskdefs.optional.XMLValidateTask
 +User task: xslt     org.apache.tools.ant.taskdefs.XSLTProcess
 +User task: iplanet-ejbc     org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbcTask
 +User task: ccmcheckintask     org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckinDefault
 +User task: gzip     org.apache.tools.ant.taskdefs.GZip
 +User task: native2ascii     org.apache.tools.ant.taskdefs.optional.Native2Ascii
Could not load class (org.apache.tools.ant.taskdefs.optional.scm.AntStarTeamCheckOut) for task starteam
 +User task: ear     org.apache.tools.ant.taskdefs.Ear
 +User task: input     org.apache.tools.ant.taskdefs.Input
 +User task: rmic     org.apache.tools.ant.taskdefs.Rmic
 +User task: checksum     org.apache.tools.ant.taskdefs.Checksum
 +User task: mail     org.apache.tools.ant.taskdefs.email.EmailTask
 +User task: loadfile     org.apache.tools.ant.taskdefs.LoadFile
 +User task: vsscheckout     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKOUT
Could not load class (org.apache.tools.ant.taskdefs.optional.StyleBook) for task stylebook
 +User task: soscheckin     org.apache.tools.ant.taskdefs.optional.sos.SOSCheckin
 +User task: mimemail     org.apache.tools.ant.taskdefs.optional.net.MimeMail
Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.StarTeamLabel) for task stlabel
 +User task: gunzip     org.apache.tools.ant.taskdefs.GUnzip
 +User task: concat     org.apache.tools.ant.taskdefs.Concat
 +User task: cab     org.apache.tools.ant.taskdefs.optional.Cab
 +User task: touch     org.apache.tools.ant.taskdefs.Touch
 +User task: parallel     org.apache.tools.ant.taskdefs.Parallel
 +User task: splash     org.apache.tools.ant.taskdefs.optional.splash.SplashTask
 +User task: antcall     org.apache.tools.ant.taskdefs.CallTarget
 +User task: cccheckout     org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckout
 +User task: typedef     org.apache.tools.ant.taskdefs.Typedef
Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Have) for task p4have
 +User task: filter     org.apache.tools.ant.taskdefs.Filter
 +User task: xmlproperty     org.apache.tools.ant.taskdefs.XmlProperty
Could not load class (org.apache.tools.ant.taskdefs.optional.jdepend.JDependTask) for task jdepend
 +User task: copy     org.apache.tools.ant.taskdefs.Copy
 +User task: antstructure     org.apache.tools.ant.taskdefs.AntStructure
Could not load class (org.apache.tools.ant.taskdefs.optional.Script) for task script
 +User task: ccmcreatetask     org.apache.tools.ant.taskdefs.optional.ccm.CCMCreateTask
 +User task: rpm     org.apache.tools.ant.taskdefs.optional.Rpm
 +User task: delete     org.apache.tools.ant.taskdefs.Delete
 +User task: replace     org.apache.tools.ant.taskdefs.Replace
 +User task: mmetrics     org.apache.tools.ant.taskdefs.optional.metamata.MMetrics
 +User task: waitfor     org.apache.tools.ant.taskdefs.WaitFor
 +User task: untar     org.apache.tools.ant.taskdefs.Untar
 +User task: loadproperties     org.apache.tools.ant.taskdefs.LoadProperties
 +User task: available     org.apache.tools.ant.taskdefs.Available
 +User task: echoproperties     org.apache.tools.ant.taskdefs.optional.EchoProperties
Could not load class (org.apache.tools.ant.taskdefs.optional.junit.JUnitTask) for task junit
Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckin) for task stcheckin
Could not load class (org.apache.tools.ant.taskdefs.optional.ide.VAJExport) for task vajexport
Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckout) for task stcheckout
 +User task: bunzip2     org.apache.tools.ant.taskdefs.BUnzip2
 +User task: copyfile     org.apache.tools.ant.taskdefs.Copyfile
 +User task: vsscreate     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCREATE
Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.Ejbc) for task ejbc
 +User task: unjar     org.apache.tools.ant.taskdefs.Expand
 +User task: wsdltodotnet     org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
 +User task: mkdir     org.apache.tools.ant.taskdefs.Mkdir
 +User task: condition     org.apache.tools.ant.taskdefs.ConditionTask
 +User task: cvs     org.apache.tools.ant.taskdefs.Cvs
 +User task: tempfile     org.apache.tools.ant.taskdefs.TempFile
Could not load class (org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator) for task junitreport
 +User task: taskdef     org.apache.tools.ant.taskdefs.Taskdef
 +User task: echo     org.apache.tools.ant.taskdefs.Echo
 +User task: ccupdate     org.apache.tools.ant.taskdefs.optional.clearcase.CCUpdate
 +User task: java     org.apache.tools.ant.taskdefs.Java
 +User task: renameext     org.apache.tools.ant.taskdefs.optional.RenameExtensions
 +User task: vsslabel     org.apache.tools.ant.taskdefs.optional.vss.MSVSSLABEL
 +User task: basename     org.apache.tools.ant.taskdefs.Basename
 +User task: javadoc2     org.apache.tools.ant.taskdefs.Javadoc
 +User task: vsscp     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCP
 +User task: tar     org.apache.tools.ant.taskdefs.Tar
Could not load class (org.apache.tools.ant.taskdefs.optional.ide.VAJImport) for task vajimport
 +User task: setproxy     org.apache.tools.ant.taskdefs.optional.net.SetProxy
Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.WLStop) for task wlstop
Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Counter) for task p4counter
 +User task: ilasm     org.apache.tools.ant.taskdefs.optional.dotnet.Ilasm
 +User task: soscheckout     org.apache.tools.ant.taskdefs.optional.sos.SOSCheckout
 +User task: apply     org.apache.tools.ant.taskdefs.Transform
 +User task: ccuncheckout     org.apache.tools.ant.taskdefs.optional.clearcase.CCUnCheckout
 +User task: jarlib-resolve     org.apache.tools.ant.taskdefs.optional.extension.JarLibResolveTask
 +User task: jlink     org.apache.tools.ant.taskdefs.optional.jlink.JlinkTask
 +User task: cvstagdiff     org.apache.tools.ant.taskdefs.cvslib.CvsTagDiff
 +User task: javacc     org.apache.tools.ant.taskdefs.optional.javacc.JavaCC
 +User task: chmod     org.apache.tools.ant.taskdefs.Chmod
 +User task: pvcs     org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs
 +User task: jarlib-manifest     org.apache.tools.ant.taskdefs.optional.extension.JarLibManifestTask
 +User task: jar     org.apache.tools.ant.taskdefs.Jar
 +User task: sound     org.apache.tools.ant.taskdefs.optional.sound.SoundTask
 +User task: mparse     org.apache.tools.ant.taskdefs.optional.metamata.MParse
 +User task: blgenclient     org.apache.tools.ant.taskdefs.optional.ejb.BorlandGenerateClient
 +User task: uptodate     org.apache.tools.ant.taskdefs.UpToDate
 +User task: genkey     org.apache.tools.ant.taskdefs.GenerateKey
 +User task: javah     org.apache.tools.ant.taskdefs.optional.Javah
 +User task: ccmreconfigure     org.apache.tools.ant.taskdefs.optional.ccm.CCMReconfigure
 +User task: fail     org.apache.tools.ant.taskdefs.Exit
 +User task: unzip     org.apache.tools.ant.taskdefs.Expand
 +User task: javac     org.apache.tools.ant.taskdefs.Javac
Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Add) for task p4add
 +User task: jpcoverage     org.apache.tools.ant.taskdefs.optional.sitraka.Coverage
 +User task: soslabel     org.apache.tools.ant.taskdefs.optional.sos.SOSLabel
 +User task: depend     org.apache.tools.ant.taskdefs.optional.depend.Depend
 +User task: vssget     org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET
 +User task: deltree     org.apache.tools.ant.taskdefs.Deltree
Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.DDCreator) for task ddcreator
 +User datatype: patternset     org.apache.tools.ant.types.PatternSet
 +User datatype: filterset     org.apache.tools.ant.types.FilterSet
 +User datatype: libfileset     org.apache.tools.ant.taskdefs.optional.extension.LibFileSet
 +User datatype: filterreader     org.apache.tools.ant.types.AntFilterReader
 +User datatype: extension     org.apache.tools.ant.taskdefs.optional.extension.ExtensionAdapter
 +User datatype: fileset     org.apache.tools.ant.types.FileSet
 +User datatype: dirset     org.apache.tools.ant.types.DirSet
 +User datatype: filelist     org.apache.tools.ant.types.FileList
 +User datatype: filterchain     org.apache.tools.ant.types.FilterChain
 +User datatype: path     org.apache.tools.ant.types.Path
 +User datatype: classfileset     org.apache.tools.ant.types.optional.depend.ClassfileSet
 +User datatype: description     org.apache.tools.ant.types.Description
 +User datatype: xmlcatalog     org.apache.tools.ant.types.XMLCatalog
 +User datatype: selector     org.apache.tools.ant.types.selectors.SelectSelector
 +User datatype: mapper     org.apache.tools.ant.types.Mapper
 +User datatype: substitution     org.apache.tools.ant.types.Substitution
 +User datatype: extensionSet     org.apache.tools.ant.taskdefs.optional.extension.ExtensionSet
 +User datatype: regexp     org.apache.tools.ant.types.RegularExpression
Setting ro project property: ant.version -> Apache Ant version 1.5 compiled on October 15 2002
Setting ro project property: ant.file -> /usr/src/postgresql/postgresql-7.4.3/conftest.xml
parsing buildfile conftest.xml with URI = file:/usr/src/postgresql/postgresql-7.4.3/conftest.xml
Setting ro project property: ant.project.name -> conftest
Adding reference: conftest -> org.apache.tools.ant.Project@3fea1d
Project base dir set to: /usr/src/postgresql/postgresql-7.4.3
 +Target: conftest
   +Task: javac
Build sequence for target `conftest' is [conftest]
Complete build sequence is [conftest]

conftest:
fileset: Setup scanner in dir /usr/src/postgresql/postgresql-7.4.3 with patternSet{ includes: [conftest.java] excludes:
[]} 
    [javac] conftest.java added as /usr/src/postgresql/postgresql-7.4.3/conftest.class doesn't exist.
    [javac] Compiling 1 source file
    [javac] Modern compiler not found - looking for classic compiler
    [javac] Using classic compiler
    [javac] Compilation arguments:
    [javac] '-classpath'
    [javac]
'/opt/jakarta/ant/lib/xml-apis.jar:/opt/jakarta/ant/lib/xercesImpl.jar:/opt/jakarta/ant/lib/optional.jar:/opt/jakarta/ant/lib/ant.jar'
    [javac] '-sourcepath'
    [javac] '/usr/src/postgresql/postgresql-7.4.3'
    [javac] '-g:none'
    [javac]
    [javac] The ' characters around the executable and arguments are
    [javac] not part of the command.
    [javac] File to be compiled:
    [javac]     /usr/src/postgresql/postgresql-7.4.3/conftest.java

BUILD FAILED
file:/usr/src/postgresql/postgresql-7.4.3/conftest.xml:3: Cannot use classic compiler, as it is not available.  A
commonsolution is to set the environment v 
ariable JAVA_HOME to your jdk directory.
        at org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:110)
        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:840)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 2 seconds
configure:3225: $? = 1
configure: failed java program was:
public class conftest {
    int testmethod(int a, int b) {
        return a + b;
    }
}
configure: failed build file was:
<project name="conftest" default="conftest">
 <target name="conftest">
  <javac srcdir="." includes="conftest.java">
  </javac>
 </target>
</project>
configure:3241: result: no
configure:3245: error: ant does not work
<!--- End of config.log excerpt --->

I have added /opt/jakarta/ant/lib/ant.jar to the CLASSPATH, but that didn't help either. I don't know what to make of
these"Could not load class (org.apache.tools.ant.*" messages... 

> Configuring with --with-java does nothing other than build
> the JDBC driver.  There used to be some additional java
> tools, but these were removed before the 7.4 release.  The
> provided jar files are no different than what you would build
> yourself so it's fine to use them.

Okay, so I guess if all else fails, I'll give up on building the driver myself and use the official pre-compiled one.

Thanks for your help!

Kind regards,

   Markus