ysocean

在实际开发过程中,可能由于项目的需要,我们需要更换 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

 

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

 

分类:

技术点:

相关文章:

  • 2021-11-18
  • 2022-01-02
  • 2021-08-02
  • 2022-01-17
  • 2021-10-07
  • 2021-05-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-16
  • 2021-04-23
  • 2022-02-04
  • 2021-06-21
相关资源
相似解决方案