JAVA_HOME does not point to the JDK

来源:互联网 发布:sql查询一列重复数据 编辑:程序博客网 时间:2024/04/19 00:20

TOMCAT运行也正常,但就是无法编译执行。

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

网上找到的解决方案:只要把JAVA_HOME/lib/tools.jar拷到TOMCAT_HOME/common/lib下,重启动Tomcat,就可以了