Java compiler level does not match the version of the installed Java project facet问题解决

Eclipse出现

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

错误提示,如下图:

 

 

原因:

Java Compiler选择的版本和'Project Facets'中指定的java版本不一致引起的。

修改为一致即可,

'Project Facets'版本的修改方式的有多种,

 

1、可以直接修改相应配置文件

在工程目录下.settings/org.eclipse.wst.common.project.facet.core.xml中修改facet="java"项;

 

 

 

2、通过Eclipse修改,右键项目=>Properties=>Project Facets修改Java版本

 

 

 

 

 

 

参考文献:https://blog.csdn.net/yuyecsdn/article/details/90052345

posted @ 2021-05-09 18:22  希声lx  阅读(238)  评论(0编辑  收藏  举报