db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew McIntyre" <mcintyr...@gmail.com>
Subject Re: Error on using Ant to build Derby, Ant can not find compiler
Date Sun, 04 Feb 2007 18:23:56 GMT
On 2/4/07, Liese liu <lieseliu@yahoo.com> wrote:
> Hej everybody,
> I am a newer of  Derby. I download the db-derby-, when i use
> Ant 1.6.5 build it, it alwasy occures the same error, i.e. Compiler Adapter
> can't be found.
> My OS is Win XP, following is my ant.properties and the build output.
> j14lib= F:/j2sdk1.4.2_13/jre/lib
> j13lib= F:/jdk1.3.1_19/jre/lib
> build.compiler= F:\\j2sdk1.4.2_13\\bin\\javac.exe
> proceed=false
> sane=false
> F:\Derby\build.xml:347: The following error occurred while executing this
> line:
> F:\Derby\java\shared\build.xml:67: Compiler Adapter
> 'F:\j2sdk1.4.2_13\bin\javac.
> exe' can't be found.
> Total time: 1 second
> Waiting for any reply!

Do not set build.compiler to the location of javac in your
ant.properties. Valid values for build.compiler are discussed in the
sixth paragraph under Description in the documentation for Ant's javac
task, here:


Typically build.compiler should be set to 'modern', and Derby's
properties files for Ant set this value themselves.

e.g. in the top-level build.xml is this property file definitions:

  <property file="${properties.dir}/defaultcompiler.properties"/>

tools/ant/properties/defaultcompiler.properties sets:


The javac that will be used will be the javac from the JDK with which
you are running Ant, i.e. from the jdk that is in your path, and Ant
will find it automatically.


View raw message