日期:2014-05-18  浏览次数:20846 次

JDK的lib下没有tools.jar文件?
我有JDK-1_5_0_06+tomcat5.59开发jsp网页前期安装环境变量设置都没问题但在http://localhost:8080/test/test1.jsp却出现错误
description   The   server   encountered   an   internal   error   ()   that   prevented   it   from   fulfilling   this   request.
exception  

org.apache.jasper.JasperException:   Unable   to   compile   class   for   JSP
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
root   cause  

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

我在网上查了下把jdk下lib中tools.jar拷贝到tomcat就可以了,我一找lib下居然没tools.jar那个文件,去官方下载最新的版本也没有,我该什么解决这个问题呢??


------解决方案--------------------
你的系统环境变量中有没有设JAVA_HOME?
------解决方案--------------------
不会把
怎么会有这种事
重新安装一下
------解决方案--------------------
没有设置系统环境变量
------解决方案--------------------
jdk下面不可能没有tools包,jre下面可能没有
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.aiyiweb.com/j2ee/2308.html