Unable to find a javac compiler解决办法是什么



Unable to find a javac compiler解决办法是什么?

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

解决办法:

在JDK的lib目录下有一个tools.jar文件,你把它拷到Tomcat安装目录下的common\lib目录下

假如还是不可以,在打开tomcat的configue tomcatg ,找到java,在java optioons里填上:-Djava.home=C:\Java\jdk1.6.0_10