I am trying to package my web application into war file using Ant.
When I build, I am getting the following error:
C:\Documents and Settings\Administrator\workspace\Assignment7\build.xml:67: 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.
It is currently set to "C:\Program Files\Java\jre6"
The following is my build.xml
==="complie"==="PACKAGING THE FILES"
How can I compile a class file that does not have a main class?
How do I set the class path?
For reference, I am using Eclipse.
以上就是Unable to find a javac compiler的详细内容，更多请关注web前端其它相关文章！