ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Urban" <jim.ur...@netsteps.net>
Subject Ant Won't Compile Java Programs
Date Fri, 08 Jun 2001 13:08:32 GMT
I just installed ant on my NT 4.0 PC.  I created a simple "build.xml" file
for one of my Java projects.  When I run ant it gives me the following
messages:

compile:
    [javac] Modern compiler is not available - using classic compiler
    [javac] Compiling 192 source files to D:\vcoj\build

BUILD FAILED

D:\vcoj\build.xml:17: Cannot use classic compiler, as it is not available A
common solution is to set the environment variable JAVA_HOME to your jdk
directory.

I have my JAVA_HOME set to "d:\jdk1.3".  I can type "JAVA_HOME\bin\javac" at
the command prompt within my project directory and the Java compiler runs
just fine.  I can also simply type "javac" at the command prompt and run the
compiler.  What is ant's problem?  Why does it think my compiler is not
available?  

Jim Urban
Project Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


Mime
View raw message