Unable to find a javac compiler;Perhaps JAVA_HOME does not point to the JDK
web项目部署到tomcat7、jdk7的环境下访问报错500:
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
Perhaps JAVA_HOME does not point to the JDK
解决方案:
只要把JAVA_HOME/lib/tools.jar拷到TOMCAT_HOME/lib目录下,重启动Tomcat即可
只要把JAVA_HOME/lib/tools.jar拷到TOMCAT_HOME/lib目录下,重启动Tomcat即可