You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Liese liu <li...@yahoo.com> on 2007/02/04 14:00:02 UTC
Error on using Ant to build Derby, Ant can not find compiler
Hej everybody,
I am a newer of Derby. I download the db-derby-10.2.2.0-src.zip, 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
build output:
F:\Derby>ant -propertyfile c:\ant.properties
Buildfile: build.xml
init:
ensuresanitystate:
setissane:
showenv:
[echo] Ant environment:
[echo] Base Directory: F:\Derby
[echo] Build output: F:\Derby/classes
[echo] Compiler: F:\j2sdk1.4.2_13\bin\javac.exe
[echo] Sane = false
[echo] Proceed = false
getstate:
state:
shared:
compile:
[javac] Compiling 11 source files to F:\Derby\classes
BUILD FAILED
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!
Liese
____________________________________________________________________________________
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/
Re: Error on using Ant to build Derby, Ant can not find compiler
Posted by Andrew McIntyre <mc...@gmail.com>.
On 2/4/07, Liese liu <li...@yahoo.com> wrote:
>
> Hej everybody,
> I am a newer of Derby. I download the db-derby-10.2.2.0-src.zip, 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
>
> BUILD FAILED
> 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:
http://ant.apache.org/manual/CoreTasks/javac.html
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:
build.compiler=modern
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.
HTH,
andrew