1、jre版本问题
The compiler compliance specified is 1.5 but a JRE 1.8 is used
解决:这个问题其实就是配置的jre和本地的jre版本不同,故将这个版本统一就可以解决了
- 右键点击项目>Properties>Java Compiler>将Compiler compliance level改为1.8
2、 jre版本问题
Build path specifies execution environment J2SE-1.6
解决:这个问题也是由于版本不统一
- 右击点击项目,Properties—— java build path,选择Libraries 选项卡,选中jre,点击remove。
- 移除后,再添加。选择add library
- 选择默认