注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 小五思科技术学习笔记之SSH
 帮助

Eclipse中启动tomcat访问jsp文件错误解决方法


2008-04-14 16:02:38
eclipse下,使用tomcat时,一切都设置妥当,包括classpath,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

解决方案网址:http://blog.csdn.net/Think2Exist/archive/2004/10/08/128411.aspx
经过探索发现问题出在Eclipse 3启动Tomcat时的Classpath上,tools.jarTomcat启动时需要,但现在找不到(事实上系统变量Classpath已经指明了 tools.jar所在),系统是去JRElib下找,可是这个包默认应该在[JDK]的lib问题的解决很简单,只要复制[JDK.jar[JRE]下即可。

解决方案有二:
1.
找到jdklib目录下的tools.jar,拷贝到tomcatcommon目录下即可
2.
打开eclipse,在菜单windows->preferences->tomcat->jvm settings,在classpath栏下添加tools.jar即可。


 




    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: