1,首先查看eclipse的jdk编译版本eclipse 导入工程:Java compiler level does not match 问题解决

2,搜索compile,设置编译出的文件使用的格式是JDK1.7

eclipse 导入工程:Java compiler level does not match 问题解决

3,进入项目,把项目--prorerties--Java compile,把项目的编译版本设置为1.7。

eclipse 导入工程:Java compiler level does not match 问题解决

4,最后,还是进入项目--properties--project Facets,将java 设置为1.7。

eclipse 导入工程:Java compiler level does not match 问题解决

5,当设置完这些后,项目如果又报错(我的情况如下)

1)此时,右键选中项目--build path--configure build path --Java build path ,把JRE system Libarary 选中Remove掉

2)重新 右键选中项目--build path--add  Library  如图即可

相关文章:

  • 2021-05-03
猜你喜欢
  • 2021-09-20
  • 2021-07-08
  • 2021-12-09
  • 2021-12-19
  • 2021-10-24
相关资源
相似解决方案