一、因为你的Compiler 是jdk1.5,只要把它改为 1.8方法:
window ->preferences… -> java -> Compiler. 右侧Compiler compliance level : 1.8
二、 把项目的JRE变成1.8的
项目右键->build path->configure build path->java Compiler(左边那排中) ->在右边的Compiler compliance level 修改版本为1.8
三、build path修改
项目右键->build path->configure build path,将右侧libraries下的jre错误的remove,然后Add Library->JRE System Library,选中当前正在用的jdk。
项目报错:The method of type must override a superclass method
最新推荐文章于 2019-09-10 10:50:07 发布