最近用tomcat 5.0.28調試jsp,已經(jīng)設置好了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
費了我好幾天時(shí)間,今天終于調好了。在tomcat設置中加入JAVA_HOME/lib/tools.jar就行了,如下圖: