Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

The New Entry Point Class Wizard generates an onModuleLoad() method with an @Override annotation, and the application fails to execute. Why?

0
Posted

The New Entry Point Class Wizard generates an onModuleLoad() method with an @Override annotation, and the application fails to execute. Why?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123