TOMCAT运行也正常,但就是无法编译执行。
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
网上找到的解决方案:只要把JAVA_HOME/lib/tools.jar拷到TOMCAT_HOME/common/lib下,重启动Tomcat,就可以了
本文介绍了解决Tomcat无法编译执行的问题方案。主要原因是未能找到javac编译器,解决办法是将JAVA_HOME/lib/tools.jar复制到TOMCAT_HOME/common/lib目录下,并重启Tomcat。
TOMCAT运行也正常,但就是无法编译执行。
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
网上找到的解决方案:只要把JAVA_HOME/lib/tools.jar拷到TOMCAT_HOME/common/lib下,重启动Tomcat,就可以了
706
5万+
4万+

被折叠的 条评论
为什么被折叠?