特牛生活网

The compiler compliance specified is 1.7 but a JRE 1.8 is used-CSDN博客

网友收藏
文章浏览阅读2.4k次。The compiler compliance specified is 1.7 but a JRE 1.8 is used。原因:你安装的jdk里面的jre 和你eclipse设置的jre 不同。解决:法①window->preferences->Java->Installed JREs, 然后更改版本。法②右键点击你建立的项目 >Properties>Java Compiler>将Compiler compliance level改为1.8 ,再点击Apply_the compiler compliance specified is 1.7 but a jre 1.8 is used