Recently, JSP has been debugged with Tomcat 5.0.28. It has already set up java_home, tomcat_home and classpath, everything is fine, the machine at home always appears: 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 tested me a few days, today finally tailored. Add Java_Home / lib / Tools.jar in Tomcat settings, as shown below: