java.lang.UnsupportedClassVersionError: Bad version number in .class file
造成这种过错是ni的支撑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版本一致).
相关文章
- Unsupported class file major version 55
- eclipse运行报错has been compiled by a more recent version of the Java Runtime (class file version 56.0)
- java.lang.UnsupportedClassVersionError: com/mysql/cj/jdbc/Driver : Unsupported major.minor version 52.0 (unable to load class [com.mysql.cj.jdbc.Driver])
- Decompiled .class file,bytecode version:51.0(Java 7) Source for 'Android API 23 Platform' not found
- ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet
- ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet………
- androidstudio无法查看源码问题(Decompiled.class file,bytecode version:52.0(Java 8))
- mac下Intellij IDEA查看Java源码提示"Decompiled.class file, bytecode version:52.0 (Java 8)
- IDEA.1.6打开Scala文件decompiled.class file bytecode version50(java 6)解决
- Unity 安卓平台签名打包错误compiled by a more recent version of the Java Runtime (class file version 53.0)