1、The compiler compliance specified is 1.5 but a JRE 1.8 is used

解决:这个问题其实就是配置的jre和本地的jre版本不同,故将这个版本统一就可以解决了

  • 右键点击项目>Properties>Java Compiler>将Compiler compliance level改为1.8
    Eclipse常见错误汇总
    Eclipse常见错误汇总

2、 Build path specifies execution environment J2SE-1.6

Eclipse常见错误汇总

解决:这个问题也是由于版本不统一

  • 右击点击项目,Properties—— java build path,选择Libraries 选项卡,选中jre,点击remove。
    Eclipse常见错误汇总
  • 移除后,再添加。选择add library
  • 选择默认环境或自己动手选择。这里我安装的是1.8版本。

Eclipse常见错误汇总

  • 此时这里的1.8就配置好了。点击应用
    Eclipse常见错误汇总

3、maven problem ——Description Resource Path Location Type Project configuration is not up-to-d

解决:
Eclipse常见错误汇总

Eclipse常见错误汇总

4、java compiler level does not match the version of the installed java project facet

Eclipse常见错误汇总
错误原因:也是因为和安装版本不同导致的错误
解决:
右击出错的项目–properties–project Facets–java选择为自己安装的版本,即可
Eclipse常见错误汇总

相关文章:

  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2021-06-03
  • 2021-11-21
  • 2021-05-19
  • 2021-09-19
猜你喜欢
  • 2021-06-23
  • 2021-11-17
  • 2021-11-10
  • 2021-06-06
  • 2021-10-25
  • 2021-09-28
  • 2021-10-02
相关资源
相似解决方案