ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Travis Reeder <travis.ree...@ecommstats.com>
Subject Javac problem
Date Tue, 13 Jul 2004 19:22:23 GMT
I have the following settings in set:
JAVA_HOME=/usr/java/jdk

When I run a compile task that looks like this my build.xml:

 <javac srcdir="${src.dir}" destdir="${build.dir}" debug="off" 
deprecation="off" optimize="off" compiler="modern" >
            <classpath refid="core.class.path"/>
        </javac>

I get this:

compile:
     [echo] Java Home: /usr
    [javac] Compiling 133 source files to /home/v1/web/WEB-INF/classes

BUILD FAILED
file:/home/v1/build.xml:33: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

The echo above is what ant sees as java.home property.  Why would it be 
set to that when I have JAVA_HOME set to the correct location?

Travis

-- 
Travis Reeder
Ecommstats Web Analytics


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message