Java--解决java compiler level does not match the version of the installed java project facet错误

时间:2023-03-09 02:03:08
Java--解决java compiler level does not match the version of the installed java project facet错误

从网上下载了个项目,导入eclipse时发现如下错误:

Java--解决java compiler level does not match the version of the installed java project facet错误

检查后发现原来是JDK版本不一致的问题,项目的默认JDK配置是1.5,而自己电脑上是1.7。

需要修改两个地方的配置,如下图所示:

修改一:

Java--解决java compiler level does not match the version of the installed java project facet错误

修改二:

Java--解决java compiler level does not match the version of the installed java project facet错误

修改这两处后,就可以了!

参考:

(1)http://blog.sina.com.cn/s/blog_87479ba60100x6wh.html

(2)http://blog.****.net/chszs/article/details/8125828