tomcat自带的Demo,没有问题,用MyEclipse写的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/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
解决:
把jdk中lib下的tools.jar拷贝到tomcat安装目录下的common下的lib里 如果common的lib有这个包 你就覆盖它
高手就不要看了