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
Contributor
buba_kazouba
Posts: 10
Registered: ‎06-09-2011
My Device: curve
My Carrier: student

method is not invoked

i am trying to let my app work on a real bb

it works fine in the simulator

 

when i open the .jad file in the bb it installs successfuly but when i run the app it tells me:

uncaught exception:

java.lang.NoClassDefFoundError

 

i thought maybe this was because the error in my source code:

warning method mypackage.MyApp.main(String[]) is not invoked

 

first may someone explain to me what does "is not invoked" means?

second is this warning is what gives this "uncaught exception"

 

there is another weird thing i also think that maybe this is a problem i have created another gui app before but it didn't install in the blackberry so i extracted the .cod file to the blackberry.

in this app the .cod file doesn't extract.

 

i have another question in the project folder ->deliverables

there is web and standard what is the difference?

 

thanks in advance

Please use plain text.
Developer
jprofitt
Posts: 604
Registered: ‎12-27-2010
My Device: Not Specified

Re: method is not invoked

My guess is that you've compiled your project against a higher JRE than the device has. For example, if you've compiled for OS 6, but your device is OS 5, it won't work.

Please use plain text.
Contributor
buba_kazouba
Posts: 10
Registered: ‎06-09-2011
My Device: curve
My Carrier: student

Re: method is not invoked

well i have 2 questions

first how do i konw which jre i have compiled and how do i change it?

second

how do i know which jre does the device have and can i change it?if i can how

 

thanks for replying

Please use plain text.
Contributor
buba_kazouba
Posts: 10
Registered: ‎06-09-2011
My Device: curve
My Carrier: student

Re: method is not invoked

i have creawted another gui app before and it worked fine on my blackberry i don't think that the problem is in the version

Please use plain text.
Developer
yamyu
Posts: 21
Registered: ‎06-15-2012
My Device: 9900
My Carrier: TX

Re: method is not invoked

if the .java file in win7, you 'll ensure you have the access permission of the file
Please use plain text.