我快崩溃了,老是出这样的错(200分)?(200分)

  • 主题发起人 主题发起人 grays
  • 开始时间 开始时间
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
 
同情,象版本不一致。
 
我一般用的开发工具是:intelliJ Idea
 
把jdk换为1.3试试.
 
rt.jar的版本不对唉,
 
楼上说得有一定的道理。[:D]
 
用jdk1.3.1_04就OK了
 
后退
顶部