java.lang.UnsupportedClassVersionError: Bad version number in .class file
程序员文章站
2022-05-14 18:58:14
...
java.lang.UnsupportedClassVersionError: Bad version number in .class file
问题:MyEclipse 安装后执行一个java项目,出现下面的异常;
- java.lang.UnsupportedClassVersionError: Bad version number in .class file
- at java.lang.ClassLoader.defineClass1(Native Method)
- at java.lang.ClassLoader.defineClass(Unknown Source)
- at java.security.SecureClassLoader.defineClass(Unknown Source)
- at java.net.URLClassLoader.defineClass(Unknown Source)
- at java.net.URLClassLoader.access$100(Unknown Source)
- at java.net.URLClassLoader$1.run(Unknown Source)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.net.URLClassLoader.findClass(Unknown Source)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:683)
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:425)
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
解决方法:
1. java JDK版本确认。
2. TOMCAT JDK版本确认(MyEclipse TOMCAT)。
3. TOMCAT JDK版本确认(TOMCAT X.X)。
4. JRE 版本确认
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
蕃薯耀 2013年3月27日 21:36:34 星期三
推荐阅读
-
tomcat 启动报错:java.lang.UnsupportedClassVersionError: Bad version number in .class
-
weblogic启动失败UnsupportedClassVersionError: Bad version number in .class file WeblogicJDKJava
-
weblogic启动失败UnsupportedClassVersionError: Bad version number in .class file WeblogicJDKJava
-
tomcat报错:bad version number .class file
-
tomcat报错:bad version number .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
-
java.lang.UnsupportedClassVersionError: Bad version number in .class file