‘Must Override a Superclass Method’ Errors after importing a project into Eclipse

Eclipse is defaulting to Java 1.5, when you want it to use Java 1.6.

You have classes implementing interface methods, which in Java 1.6 can be annotated with @Override; however, in Java 1.5, @override could only be applied to methods overriding a superclass method.

Go to your project/ide preferences and set the “Java compiler level” to 1.6 and also make sure you select JRE 1.6 to execute your program from Eclipse. Check also the JRE System Library on Java Build Path properties of your project.


Leave a Reply