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个人找到的解决办法
|
7月前
|
Java
Version 1.8.0_201 of the JVM is not suitable for this product. Version: 11 or greater is required.
Version 1.8.0_201 of the JVM is not suitable for this product. Version: 11 or greater is required.
176 0
AttributeError: ‘version_info‘ object has no attribute ‘version‘
AttributeError: ‘version_info‘ object has no attribute ‘version‘
256 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)
172 0
Unsupported major.minor version 52.0(unable to load class com.xxxxxxx.xxx.xx.xx)
|
Java 应用服务中间件 Android开发
Description Resource Path LocationType Java compiler level does not match the version of the instal
Description Resource Path LocationType Java compiler level does not match the version of the instal
207 0
Description Resource Path LocationType Java compiler level does not match the version of the instal
java.lang.IllegalArgumentException: Unsupported class file major version 60
java.lang.IllegalArgumentException: Unsupported class file major version 60
1071 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 )
308 0
【错误记录】jar 执行错误 ( java.lang.UnsupportedClassVersionError: Unsupported major.minor version 52.0 )