In eclipse it is showing value 1.8 is not a valid language level

痴心易碎 提交于 2019-12-19 03:45:12

问题


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?


回答1:


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.




回答2:


Drop down the compliance level to Java7:

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




回答3:


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



来源:https://stackoverflow.com/questions/27603747/in-eclipse-it-is-showing-value-1-8-is-not-a-valid-language-level

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!