Welcome!

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

Reply
Developer
Jam321
Posts: 59
Registered: ‎06-15-2012
My Device: 9800
My Carrier: XZY

Uncaught exception:java.lang.NoClassDefFoundError

Hey guys

                         i getting this exception at runtime.. i tried to solve but :smileysad:. can any one tell reasone & solution (possible)

i tried on os6.0,7.0,71 simulator but nothing working out.

 

Thanks

JaM321

Please use plain text.
Developer
YamilBracho
Posts: 713
Registered: ‎05-31-2010
My Device: 8520
My Carrier: Movistar

Re: Uncaught exception:java.lang.NoClassDefFoundError

Could you show the code your are trying to execute ?

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Uncaught exception:java.lang.NoClassDefFoundError

[ Edited ]

You are referencing some class that does not exist in the BB Java API's, or at least does not exist in the OS version on the target device.

 

You will see this, for example, when you are compiling with 6.0 and loading the program on a 5.0 device. Your compiler level must be <= the target OS level.

 

It might also be that you are referencing a class in a 3rd-party jar that you neglected to load on the device along with your application.

 

You'll get more info if you view the device log and see what class the exception is refering to.

 

Please use plain text.