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

Right click on the project>Properties>Java Compiler>Change Compiler compliance level to 1.8
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44556968/article/details/109781978