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

Java compiler level does not match the version of the installed Java project facet.的解决:eclipse


1.在资源管理器下,找到项目所在的目录在E:\dormitory\dorm\.settings子目录中,用文本编辑器打开org.eclipse.wst.common.project.facet.core.xml配置文件编辑器


修改红色画线部分,让它与项目的编译器版本设置保持一致便可。spa

要查看项目的编译器版本设置,在Eclipse环境中,鼠标右键选择项目,点击Properties,选择Java Compiler,能够在窗口右边看到编译器版本,如图所示:
3d