最近用tomcat 5.0.28调试jsp,已经设置好了JAVA_HOME、TOMCAT_HOME及CLASSPATH,在本上一切正常,在家里的机器却总是出现以下错误:
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
费了我好几天时间,今天终于调好了。在tomcat设置中加入JAVA_HOME/lib/tools.jar就行了,如下图: