急啊,大家帮忙看看
大家帮帮忙这是什么错误啊,这个JSP页面在本地测试没问题,但放到服务器上就出现下面的错误.
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME b/tools.jar from the JDK
to the common b directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
------解决方案--------------------提示很清楚啊
没有找到编译JSP的Java编译器,这通常可以通过手动拷贝JDK下的$JAVA_HOME b/tools.jar 到Tomcat下的common的lib目录,然后重启Tomcat进行解决。
------解决方案--------------------无法解释jsp,解决方案同一楼
------解决方案--------------------没装jdk吧
------解决方案--------------------服务器不在本地,能不能改嘛?不能改就只有先在本地编译再传到服务器上了。
------解决方案--------------------晕,服务器也是需要装jdk的,跟服务商联系
------解决方案--------------------No Java compiler was found to compile the generated source for the JSP.
如果你的JDK有多个的话,你要在环境变量中都设置一下,当你用当前JDK的话
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.aiyiweb.com/j2ee/2308.html