@Override compile error, implementing an interface (eclipse jdk1.6.0_23 linux)

后端 未结 8 1016
耶瑟儿~
耶瑟儿~ 2021-01-04 01:38

I am getting compile errors in eclipse when using the @Override annotation for a class that is implementing an interface.

Compiler compliance level is set to Java 6.

8条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-04 01:54

    Check the Runtime library, the compiler settings are probably different

    Right click on the project name, properties, Java Build Path, Libraries

    Look at the version of JRE System Library, more than likely it's set to 1.5 or lower. Select JRE System library, then click remove Click Add Library, select JRE System Library, Next Then either Workspace Default, or

提交回复
热议问题