Eclipse中的Drools Java 7支持 [英] Drools Java 7 support in Eclipse

查看:89
本文介绍了Eclipse中的Drools Java 7支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse(Indigo)中创建了一个Drools项目,该项目配置为使用JRE 1.7。但是我指向我的.drl文件时遇到错误:

I created a Drools project in Eclipse (Indigo) configured to use JRE 1.7. But I get an error pointing to my .drl file:

com / sample / DroolsTest $ Message:不支持的major.minor版本51.0

com/sample/DroolsTest$Message : Unsupported major.minor version 51.0

.drl文件导入com.sample.DroolsTest.Message类。 Drools的运行时为5.2.1(也曾在5.3.0.Final中尝试过)。

The com.sample.DroolsTest.Message class is imported by the .drl file. The Drools runtime was 5.2.1 (also tried with 5.3.0.Final).

任何帮助将不胜感激。谢谢。

Any help would be appreciated. Thanks.

推荐答案

该异常似乎与Drools无关,但它是一般的Java错误。如果尝试使用比用于编译它的JDK更旧的JRE执行Java类,则会发生这种情况。例如,如果您使用JDK7编译该类,然后尝试使用JDK6执行该类,则会出现此错误。

This exception doesn't seem to have to do anything with Drools in particular, but is a generic Java error. It occurs if you try to execute a Java class with a JRE that is older than the JDK that was used to compile it. For example, if you compiled the class with a JDK7 and then tried to execute it with a JDK6, you would get this error.

这篇关于Eclipse中的Drools Java 7支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆