解决TomCat5的JAVA_HOME does not point to the JDK问题
最近公司要求开发Jsp项目,没办法硬着头皮开始改写别人的Jsp项目。
但是安装JDK,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
的错误,重新安装了Tomcat之后还是这个问题,最后还是在网上找到了解决方案:
但是安装JDK,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
的错误,重新安装了Tomcat之后还是这个问题,最后还是在网上找到了解决方案:
1、在JDK的安装目录的lib目录下有一个tools.jar文件,拷贝到Tomcat安装目录下的common\lib目录下。
2、如果不可以,在打开tomcat的configue tomcatg ,找到java,在java optioons里填上:-Djava.home=JDK的安装目录。