You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ha...@verizon.com on 2003/01/09 02:15:50 UTC

[javac] Modern compiler not found - looking for classic compiler

I am trying to execute ant programmatically from a servlet running in
weblgic server(6.1sp4).
Everything works fine but stops with the following error.

When I run from command line it works great.
I tried setting build.compiler property to modern and using defaults by
removing that statement also.

The JAVA_HOME env variable is correctly set.

The error is :

compile:
    [javac] Compiling 13 source files to C:\Projects\srcbuild
    [javac] Modern compiler not found - looking for classic compiler

BUILD FAILED
file:C:/scripts/build.xml:112: Cannot use classic compiler, a
s it is not available.  A common solution is to set the environment
variable JAV
A_HOME to your jdk directory.

what is the problem ?

-HP



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>