You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ged Byrne <ge...@yahoo.co.uk> on 2002/12/06 16:01:40 UTC
Newbie problem using ANT
Hi,
I've just got Ant up and running, but I'm having
problems. I keep getting the following error:
Compile-framework:
[javac] Compiling 375 source files to
D:\gedbs\Java\NakedObjects\nakedobjects1.0a\build\classes
[javac] Modern compiler not found - looking for
classic compiler
BUILD FAILED
file:D:/gedbs/Java/NakedObjects/nakedobjects1.0a/build.xml:128:
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: 3 seconds
can't open C:\jdk1.3.1_04\lib\tzmappings.
I've checked that JAVA_HOME is set in my environment
variables. It is showing in control panel and the
python is able to retrieve it.
>>> import os
>>> os.environ['JAVA_HOME']
'C:\\jdk1.3.1_04'
>>>
I've tried adding the following to my command line,
but with no success:
-Djava.home=C:\jdk1.3.1_04
I've tried controlling everything with the command
line:
C:\jdk1.3.1_04\bin\java -classpath
D:\gedbs\Java\jakarta-ant-1.5.1\lib\ant.jar
-Dant.home=c:\ant -Djava.home=C:\jdk1.3.1_04
org.apache.tools.ant.Main -buildfile
D:\gedbs\Java\NakedObjects\nakedobjects1.0a\build.xml
I'm using Windows 2000 Proffessional with jdk1.3.1.04.
-version returns:
Apache Ant version 1.5.1 compiled on October 2 2002
Any suggestions?
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Newbie problem using ANT
Posted by Ged Byrne <ge...@yahoo.co.uk>.
Oops, type in path to tools jar. Sorry to litter your
inboxes.
--- Ged Byrne <ge...@yahoo.co.uk> wrote: > After
searching the Archive, I've added Tools.jar to
> the classpath, but this has not helped.
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Newbie problem using ANT
Posted by Ged Byrne <ge...@yahoo.co.uk>.
After searching the Archive, I've added Tools.jar to
the classpath, but this has not helped.
--- Ged Byrne <ge...@yahoo.co.uk> wrote: > Hi,
>
> I've just got Ant up and running, but I'm having
> problems. I keep getting the following error:
>
> Compile-framework:
> [javac] Compiling 375 source files to
>
D:\gedbs\Java\NakedObjects\nakedobjects1.0a\build\classes
> [javac] Modern compiler not found - looking for
> classic compiler
>
> BUILD FAILED
>
file:D:/gedbs/Java/NakedObjects/nakedobjects1.0a/build.xml:128:
> 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: 3 seconds
> can't open C:\jdk1.3.1_04\lib\tzmappings.
>
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>