您的位置:首页 > 编程语言 > Java开发

Perhaps JAVA_HOME does not point to the JDK的解决方法

2010-04-06 14:36 162 查看

Unable to find a javac compiler;Perhaps JAVA_HOME does not point to the JDK

 

tomcat_home, java_home都已经添加到了环境变量里,但启动jsp的时候却出现了以下的异常

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,OK

文章引自:http://hi.baidu.com/sleinet水雨田博客
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  java jdk compiler tomcat jsp
相关文章推荐