天天看点

eclips 编译时出现 Java compiler level does not match the version of installed project facet 错误

今天在编译项目时突然出现 Java compiler level does not match the version of the installed Java project facet. flower Unknown Faceted Project Problem (Java Version Mismatch) 的错误提示。尝试从SVN服务器重新update 整个项目,编译,还是报同样的错误。修改了一堆代码,郁闷之中BD了一下。

eclips 编译时出现 Java compiler level does not match the version of installed project facet 错误

1. 右击eclips 里项目--->Properties-->Java compiler, 右侧显示JDK Compiler 版本为1.8  

eclips 编译时出现 Java compiler level does not match the version of installed project facet 错误

2.  找到项目所在目录(../workspace/项目/.seetings/),下面有个名为org.eclipse.wst.common.project.facet.core.xml的文件,用记事本打开,修改里面的java 版本参数为1.8

3. 报存退出,重新编译项目,OK !