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

时间:2024-01-07 19:27:56

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

CreateTime--2018年4月24日10:28:43

Author:Marydon

1.情景再现

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

2.选中项目-->右键-->Build Path-->Configure Build Path;

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

3.Java Build Path-->选中"JRE System Library"-->Edit;

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

4.选择"Alternate JRE",也可以选择"Workspace default JRE"-->Finish-->Apply;(我设置的是工作空间默认项)

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

5.Java Compiler-->下面说的是currently 1.7-->所以将1.5改为1.7-->Apply;

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

6.Yes-->OK即可。

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