In Eclipse, I did: Source > Clean up, and did a clean up according to these rules:
- Change non static accesses to static members using declaring type
- Change indirect accesses to static members to direct accesses (accesses through subtypes)
- Remove unused imports
- Add missing '@Override' annotations
- Add missing '@Deprecated' annotations
- Remove unnecessary casts
- Remove unnecessary '$NON-NLS$' tags
but I can't seem to compile it anymore. I get the following error:
Error preverifying class com.myapp.blackberry.Override java/lang/NoClassDefFoundError: java/lang/annotation/Annotation Error!: Error: preverifier failed: C:\eclipse\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.29\components\bin\preverify.exe -d C:\DOCUME ... Packaging project myapp failed (took 0.422 seconds)
When I hover over @Override, it gives me suggestion "Override cannot be resolved to a type"
I am not sure what to do at this point..