this message brought to you by .... PIE! .... it's yummy! ;)
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
I used to have this problem. There's a fix for it - it has to do with the fact that Eclipse is using a javac internally that may not be the same as the one that it gets when running Ant.
this message brought to you by .... PIE! .... it's yummy! ;)
Kshitija Ambulgekar wrote:Hi All,
We are using Ant inbuilt in Eclipse3.1. When we are trying to build the project, build is failing and we are getting following error:
"Unable to find a javac
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK"
Whereas JAVA_HOME is already pointing to java home directory. Also we added tools.jar in the classpath. But no use..
Can somebody help on this?
Martijn Verburg wrote:Hi Sergio Adrian and welcome to Javaranch!
I'm confused as to why ANT would be running inside a Jboss instance, can you elaborate?
suresh talluri wrote:Copy the Tools.jar into Tomcat/common/lib
then restart the server.
Consider Paul's rocket mass heater. |