简体   繁体   English

哪个版本的Drools与JDK 1.7一起使用

[英]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. 对于遗留Java EE项目,我必须使用JDK 1.7。由于我想添加用于管理业务规则的Drool,因此我想知道哪个可以用于该项目的最新Drools版本。

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 6.5、6.2、6.1、6.0、5.6、5.5

Error: Unsupported major.minor version 52.0 错误:不支持的major.minor版本52.0

This is my builpath: 这是我的失败者: 在此处输入图片说明

My JAVA_HOME is set to 1.8: 我的JAVA_HOME设置为1.8:

在此处输入图片说明

Could this be the cause of the problem? 这可能是问题的原因吗? or is the drools release incompatibility with JDK 1.7 还是Drools发行版与JDK 1.7不兼容

A lot of Thanks for your help. 非常感谢您的帮助。

Drools 5.x should work fine with JDK 1.7. Drools 5.x应该可以与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. 正如其他人提到的那样,要回答您的其他问题,您将需要根据JDK 1.7而不是1.8编译项目。

Some additional information about your error "Error: Unsupported major.minor version 52.0" can be found in this post: 有关您的错误“错误:不支持的major.minor版本52.0”的一些其他信息可以在这篇文章中找到:

How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version 如何修复java.lang.UnsupportedClassVersionError:不支持的major.minor版本

adjust the compliance level works for my, i work with JDK 1.7 and Drools Release 6.50 Final: 调整适用于我的合规性水平,我使用JDK 1.7和Drools Release 6.50 Final:

builtpath: builtpath: 在此处输入图片说明

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

Test: 测试: 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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