The compiler compliance specified is 1.5 but a JRE 1.8 is used-LMLPHP

错误信息:

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

解决办法:

右击项目>选择Properties

The compiler compliance specified is 1.5 but a JRE 1.8 is used-LMLPHP

选择Java Compiler,点击Enable project specific settings,修改Compiler compliance level为1.8

The compiler compliance specified is 1.5 but a JRE 1.8 is used-LMLPHP

05-11 11:13