Bad version number in .class file
来源:互联网 发布:服装设计师软件 编辑:程序博客网 时间:2024/04/30 12:33
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
- 利用人性弱电的互联网服务
- 如何用 Visual C#.net 中的 DTD、 XDR,或 XSD 验证 XML 文档
- 基于人性的七种网络商业逻辑
- 在C#中应用PSFTP实现SFTP上传
- C/C++ 内存分配方式,堆区,栈区,new/delete/malloc/free
- Bad version number in .class file
- HTTP协议header头域
- 基于“理性”的五种网络商业逻辑
- 在一台没有安装MVC3的服务器上运行ASP.NET MVC3应用程序
- 收藏一: IT技术类
- 消息过滤
- 新成立的Java、C/C++、Linux技术讨论的QQ群
- 让Python在Android系统上飞一会儿:第二节 第一个有实用价值的应用
- 看了几天的公司计费后台代码,很茫然