1. 程式人生 > >JAVA_HOME does not point to the JDK 解決方法

JAVA_HOME does not point to the JDK 解決方法

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