G
grays
Unregistered / Unconfirmed
GUEST, unregistred user!
用Jcreator编译无问题,可是用浏览jsp文件就有如下错误?
我已经把所有环境变量中含有rt.jar都去掉了
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
D:/Tomcat 4.1/work/Standalone/localhost/test/index_jsp.java:12: cannot access java.lang.Object
bad class file: D:/j2sdk1.4.1_01/jre/lib/rt.jar(java/lang/Object.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
private static java.util.Vector _jspx_includes;
^
1 error
我已经把所有环境变量中含有rt.jar都去掉了
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
D:/Tomcat 4.1/work/Standalone/localhost/test/index_jsp.java:12: cannot access java.lang.Object
bad class file: D:/j2sdk1.4.1_01/jre/lib/rt.jar(java/lang/Object.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
private static java.util.Vector _jspx_includes;
^
1 error