ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ged Byrne <ged...@yahoo.co.uk>
Subject Newbie problem using ANT
Date Fri, 06 Dec 2002 15:01:40 GMT
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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message