在Eclipse中显示值1.8不是有效的语言级别 [英] In eclipse it is showing value 1.8 is not a valid language level
问题描述
我在Eclipse Luna,Java 1.8,Drools 5.4.0中使用drools项目。
当我打开drools文件时,显示值 1.8不是有效的语言级别。
我应该怎么做?
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?
推荐答案
最新答案,但无论如何都希望能对别人有所帮助。
Late answer but posting anyway hoping it'll help someone.
将遵从性级别降低到Java7:
Project Properties> Java编译器并勾选启用项目特定设置
选择编译器遵从性级别为1.7。
Drop down the compliance level to Java7: Project Properties> Java Compiler and Tick "Enable Project specific settings" Select compiler compliance level to 1.7.
如果您的项目是多面的,则可能还需要降低多面的版本。
项目属性>项目构面,然后为包含Java的行选择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.
这篇关于在Eclipse中显示值1.8不是有效的语言级别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!