eclipse 更换 JDK 版本后报错

在实际开发过程中,可能由于项目的需要,我们需要更换 JDK 的版本。但是更换后会报错,如下:

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

解决办法

第一步:设置 eclipse JDK 版本

Windows---->Preferences---->Java---->Installed JREs

 

第二步:设置 JDK 编译版本

Windows---->Preferences---->Java---->Compiler

 

第三步:右击项目,把项目JDK版本设置成上面统一的

右击项目---->Properties---->Java Compiler

 

 注意:以上版本都要统一!!!

 

posted @ 2017-03-22 13:24  YSOcean  阅读(3446)  评论(0编辑  收藏  举报