Bad version number in .class file .
来源:互联网 发布:linux定时关闭程序 编辑:程序博客网 时间:2024/05/21 10:23
java.lang.UnsupportedClassVersionError: Bad version number in .class file
造成这种过错的原由是Tomcat运行的JDK版本与支撑application运行的JDK版本不一致导致的.
那么如何解决上面的问题呢?
措施显而易见:把它们的JDK版本改成一致.
步骤如下:
1.Window --> Preferences -->Java --> compiler中的compiler compliance level对应的下拉菜单中选择JDK版本.
2.Window --> Preferences -->MyEclipse --> Servers -->Tomcat --> Tomcat n.x -->JDK中的Tomcat JDK name下的下拉菜单中选择自身电脑上安装的JDK版本(必需与步骤1中的JDK版本一致).
如果还是没有解决,不用焦急,因为有些MyEclipse版本自带有JDK版本,所以也要将它改过来.
3.Window --> Preferences -->Java -->Installed JRES,然后在右边选择与步骤1和2版本一致的JDK版本,如果没有,可以自身添加.然后选中就可以了.
- Bad version number in .class file(zz)
- 遭遇Bad version number in .class file
- Bad version number in .class file问题
- Bad version number in .class file
- Bad version number in .class file错误
- bad version number in .class file异常
- Bad version number in .class file
- Bad version number in .class file
- Bad version number in .class file
- unsupportedclassversionerror bad version number in .class file
- Bad version number in .class file
- Bad version number in .class file异常
- eclipse: Bad version number in .class file
- Bad version number in .class file
- Bad version number in .class file
- Bad version number in .class file
- Bad version number in .class file
- Bad version number in .class file
- NFA 的 DFA (确定化)
- Delphi Dll 消息处理 Dll (3)
- sql getdate() 时间格式设置
- 杭电2013
- C#时间处理(DateTime和TimeSpan计算时间差)
- Bad version number in .class file .
- 旧文新发
- 责任链(chain of responsibility)模式
- ADF应用应避免使用jsp:include标签
- 《一种摄影创作理念》
- 自考启示,关于不紧急重要到紧急重要的改变
- 正能量之我是一切的根源
- 限制对比度自适应直方图均衡化算法原理、实现及效果
- 记忆化搜索