The New Entry Point Class Wizard generates an onModuleLoad() method with an @Override annotation, and the application fails to execute. Why?
This is due to a difference between Java 1.5 and Java 1.6. As of Java 1.6, the meaning of @Override has been extended to include implementing a method defined in an interface, but doing this in Java 1.5 generates an error. If you’d like to develop in the Java 1.5 style, just remove these @Override annotations. To use the Java 1.6 style, navigate to your workspace’s JDK Compliance settings, under Window > Preferences > Java > Compiler (or Eclipse > Preferences on the Mac). Set Eclipse’s “Compiler Compliance Level” to 1.6.