关于程序运行出错,大家可能觉得我说的不详细.
其实我就建立一个tomcat项目,添加struts支持,然后就增加了一个struts JSP File,名字为newfile.jsp.代码如下:
<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %><html:html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK"/>
<title></title>
</head>
<body>
ddddddddddddddddd
</body>
</html:html>
其他啥代码都没写啊,运行就出以下错误HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSPGenerated servlet error:
E:\Java\eclipse\workspace\kkkk\work\org\apache\jsp\newfile_jsp.java:7: cannot access java.lang.Object
Generated servlet error:
bad class file: C:\Program Files\Java\jre1.5.0_05\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
public final class newfile_jsp extends org.apache.jasper.runtime.HttpJspBas
             ^
1 error希望各位大侠指点.谢谢