In eclipse it is showing value 1.8 is not a valid

2020-03-04 09:15发布

I am using drools project in eclipse luna, java 1.8, drools 5.4.0. When i am opening drools file it is showing value '1.8' is not a valid language level. what should i do?

标签: java drools
3条回答
家丑人穷心不美
2楼-- · 2020-03-04 09:38

its a bug with drools eclipse and java 8 https://bugzilla.redhat.com/show_bug.cgi?id=1078146

查看更多
SAY GOODBYE
3楼-- · 2020-03-04 09:51

Drop down the compliance level to Java7:

Project Properties> Java Compiler and Tick "Enable Project specific settings" Select compiler compliance level to 1.7.

查看更多
时光不老,我们不散
4楼-- · 2020-03-04 09:59

Late answer but posting anyway hoping it'll help someone.

Drop down the compliance level to Java7: Project Properties> Java Compiler and Tick "Enable Project specific settings" Select compiler compliance level to 1.7.

If your project is faceted may need to drop down the facet version as well. Project Properties> Project Facets and select 1.7 for the row containing Java.

查看更多
登录 后发表回答