Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 16
Registered: ‎10-07-2010
My Device: Not Specified
Accepted Solution

@Override notation error

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..

Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: @Override notation error

From what I know, annotations are not supported for version of  Java (J2ME; 1.4 or lower) required for BlackBerry devices.

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful