Search code examples
javajakarta-eedroolsjava-ee-7rule-engine

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: enter image description here

My JAVA_HOME is set to 1.8:

enter image description here

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.


Solution

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

    builtpath: enter image description here

    JDK compliance: enter image description here

    Test: enter image description here