eclipse导入项目报错:Java compiler level does not matchthe version of the installed java project facet.

分析问题

eclipse中设置的Java compiler的版本与项目配置文件中设置的版本不一样

解决过程

修改项目配置文件,与eclipse的编译器版本一致

step1:查看eclipse的java compiler

点击Project -> Properties ->Java Compiler

eclipse导入项目报错:Java compiler level does not matchthe version of the installed java project facet._第1张图片

step2:  打开项目文件中 .settings -> org.eclipse.wst.common.project.facet.core

修改java的版本号,与eclipse编译器一致

eclipse导入项目报错:Java compiler level does not matchthe version of the installed java project facet._第2张图片

你可能感兴趣的:(eclipse导入项目报错:Java compiler level does not matchthe version of the installed java project facet.)