您的位置:首页 > 编程语言 > Java开发

Error: Java compiler level does not match the version of the installed Java project facet.

2011-05-13 15:25 483 查看
问题现象:项目图标报错“Java compiler level does not match the version of the installed Java project facet.”。

分析原因:这个是因为Project Facets中的Java版本设定与项目的Java版本设定不一致。

解决方法:(依据ECLIPSE自带的帮助)

Changing the version of a facet

You can change the version of a facet in a J2EE project by editing the facets for the project.

Changing the Java compiler version of a J2EE project involves
changing the version of the Java facet. See Changing the Java compiler
version for a J2EE project.

1. In the Project Explorer view, right-click the project and then click "Properties".

2. In the Properties window, click "Project Facets". The Project Facets page lists the facets in the project.

3. Click "java" option, and select the version is your java compiler version(1.6).

4. Click OK.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐