JAVA_HOME does not point to the JDK 解决方法

来源:互联网 发布:js获取json对象的值 编辑:程序博客网 时间:2024/05/02 04:42

Error  Description:

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

解决方法:

打开Configure Tomcat,选中JAVA选项,改动Java Classpath
在c:/Tomcat/bin/bootstrap.jar
后添加%JAVA_HOME%/lib/tools.jar就行了,如果%JAVA_HOME%不起作用,那就直接设定绝对路径,比如c:/j2skd/lib/tools.jar