java.lang.UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError: Bad version number in .class file
javac的版本高于java版本时,就会报这个错误。
可以在main方法所在的类中,右键 Run as -->Run Configurations-->JRE 来配置。

时间: 2024-11-08 17:29:26

java.lang.UnsupportedClassVersionError的相关文章

java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.

1.错误描述 严重: Exception starting filter struts2 java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.apache.commons.lang3.StringUtils) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webap

Maven 3.3.9 mvn -version Error:java.lang.UnsupportedClassVersionError

Description 在下载 Maven包,配置了环境变量之后,在命令行执行 mvn -version(or -v) 报错: 1 Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/ma 2 ven/cli/MavenCli : Unsupported major.minor version 51.0 3 at java.lang.ClassLoader.defineClass1(

jvm和tomcat 版本不匹配,报java.lang.UnsupportedClassVersionError

项目中报:java.lang.UnsupportedClassVersionError: org/hdht/commonweb/listener/MyServletContextListener 检查java的版本和设置版本是否一样, 检测java的jvm版本与tomcat的版本是否与java的版本一样

【java.lang.UnsupportedClassVersionError】版本不一致出错

这种错误的全部报错信息: 1 java.lang.UnsupportedClassVersionError: org/apache/lucene/store/Directory : Unsupported major.minor version 51.0 2 at java.lang.ClassLoader.defineClass1(Native Method) 3 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) 4

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/crack

执行一个jar文件的时候抛异常了 Exception in thread "main" java.lang.UnsupportedClassVersionError: com/crack p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Andale Mono"; color: #29f914; background-color: #000000 } span.s1 { color: #afad24 } sp

【原创】Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0

有多个情况造成这种异常,以下列举 1.JDK 和 MAVEN 版本不兼容 从apache 官网下载maven bin 版本,我下的是apache-maven-3.3.3-bin.zip. 下载下来的安装包解压到你的工作目录下.如:E:\开发\apache-maven-3.3.3,配置环境变量,MAVEN_HOME,再把%MAVEN_HOME%\bin配置到 path中. 安装java jdk,配置JAVA_HOME.打开cmd ,输入mvn -r,如果会报错.java.lang.Unsuppor

编译异常 Caused by: java.lang.UnsupportedClassVersionError:

Caused by: java.lang.UnsupportedClassVersionError: com/sumingk/platform/service/impl/ServiceSysPersonImpl : Unsupported major.minor version 51.0 (unable to load class com.sumingk.platform.service.impl.ServiceSysPersonImpl) at org.apache.catalina.load

java.lang.UnsupportedClassVersionError: xxx/xxxClass : Unsupported major.minor version 51.0

完全参考自 http://www.cnblogs.com/xing901022/p/4172410.html 这种错误的全部报错信息: 1 java.lang.UnsupportedClassVersionError: org/apache/lucene/store/Directory : Unsupported major.minor version 51.0 2 at java.lang.ClassLoader.defineClass1(Native Method) 3 at java.la

Exception in thread "main" java.lang.UnsupportedClassVersionError:Unsupported major.minor version 52

报错: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/fsc/mina/client/TransportService : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoa