关于程序运行出错,大家可能觉得我说的不详细.
其实我就建立一个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希望各位大侠指点.谢谢
其实我就建立一个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希望各位大侠指点.谢谢
解决方案 »
- 关于大量数据运算在服务器集群中的处理。求指导。
- struts2中怎样实现过滤jsp页面的过滤器?
- CSDN无人???sql 存取ntext大字段操作?没人会解决?
- 关于获取用户曾经输入的信息
- struts2文件上传问题
- 读一个XML的问题,高手来看.感激涕零
- 请教关于hibernate双向一对多映射的保存问题
- spring+hibernate配置自动生成数据库表,总是不成功??
- 别人帮我配的 jboss + jbuilder7 + oracle9i ,连的是单位的数据库服务器(192.168.10.223),现在回到家想连接自己家的另一台数据库服务
- java 执行sessionFactory.getCurrentSession()报错
- 想学习j2ee,请问该如何学习?
- hibernate并发访问的问题?
你试试写个java程序看能不能正常运行