简体   繁体   中英

Which version of Drools to use with JDK 1.7

For a legacy Java EE project I have to work with JDK 1.7 Since I want to add drools for managing business rules, I'd like to know which is the latest drools release I can use for this project.

I have tried with the following versions, and I can not compile the examples included in the release:

6.5, 6.2, 6.1, 6.0, 5.6, 5.5

Error: Unsupported major.minor version 52.0

This is my builpath: 在此处输入图片说明

My JAVA_HOME is set to 1.8:

在此处输入图片说明

Could this be the cause of the problem? or is the drools release incompatibility with JDK 1.7

A lot of Thanks for your help.

Drools 5.x should work fine with JDK 1.7.

As others have mentioned, and to answer your other question, you will need to compile your project against JDK 1.7 instead of 1.8.

Some additional information about your error "Error: Unsupported major.minor version 52.0" can be found in this post:

How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version

adjust the compliance level works for my, i work with JDK 1.7 and Drools Release 6.50 Final:

builtpath: 在此处输入图片说明

JDK compliance: 在此处输入图片说明

Test: 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM