Drools7.0.0.Final Unsupported major.minor version 52.0异常

简介: Drools7.0.0.Final Unsupported major.minor version 52.0异常

异常信息

在使用Drools7.0.0.Final版本进行开发过程中,出现以下异常:

java.lang.UnsupportedClassVersionError: org/kie/api/KieServices$Factory : Unsupported major.minor version 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ……

异常原因

经过排查,此异常原因为JDK使用版本比Drools7.0.0.Final编译的版本低造成。Drools默认使用jdk1.7.0_52版本,而此时发生异常的JDK使用的是jdk1.7.0_51版本。

因此升级JDK版本为jdk1.7.0_52或高于此版本即可。

目录
相关文章
Unsupported major.minor version 52.0
Unsupported major.minor version 52.0
|
6月前
|
Java 应用服务中间件 Maven
JDK版本错误:Unsupported major.minor version 51.0个人找到的解决办法
JDK版本错误:Unsupported major.minor version 51.0个人找到的解决办法
解决Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 62问题~
解决Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 62问题~
189 0
|
Java 编译器 应用服务中间件
Unsupported major.minor version 52.0(unable to load class com.xxxxxxx.xxx.xx.xx)
Unsupported major.minor version 52.0(unable to load class com.xxxxxxx.xxx.xx.xx)
167 0
Unsupported major.minor version 52.0(unable to load class com.xxxxxxx.xxx.xx.xx)
undefined reference to `major‘
undefined reference to `major‘
278 0
java.lang.IllegalArgumentException: Unsupported class file major version 60
java.lang.IllegalArgumentException: Unsupported class file major version 60
1061 0
java.lang.IllegalArgumentException: Unsupported class file major version 60
|
Java Windows
【错误记录】jar 执行错误 ( java.lang.UnsupportedClassVersionError: Unsupported major.minor version 52.0 )
【错误记录】jar 执行错误 ( java.lang.UnsupportedClassVersionError: Unsupported major.minor version 52.0 )
302 0
【错误记录】jar 执行错误 ( java.lang.UnsupportedClassVersionError: Unsupported major.minor version 52.0 )
Java_异常_06_ Unsupported major.minor version 52.0
    二、参考资料 1.如何解决Unsupported major.minor version 52.0问题? 2.Unsupported major.minor version 52.0 3. Unsupported major.minor version 52.0解决办法
1165 0