ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PREMKUMAR, N [AG/8042]" <n.premku...@monsanto.com>
Subject RE: Ant cannot find a javac compiler
Date Tue, 26 Nov 2002 09:49:20 GMT
check if rt.jar is in path..
also ensure that microsoft jre is not being used... [use "java -version" to
find that out] .. if so comment that.. 

Prem

-----Original Message-----
From: Peter Lee [mailto:tomcatuser@shaw.ca]
Sent: Tuesday, 26 November 2002 1:59 PM
To: ant-user@jakarta.apache.org
Subject: Ant cannot find a javac compiler



I got the following message complaining that it cannot find JDK. But it was
working before
and all the necessary paths and environment variables have been set
properly.
ANT_home and JAVA_HOME are not altered in any way as before, but now  it
does not work.
What's the problem with it?


prepare:

compile:
    [javac] Compiling 3 source files to c:\classes

BUILD FAILED
file: 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

 

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

--
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