BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   help needed in running a MIDLET in JDE 5.0.0 (http://www.blackberryforums.com/showthread.php?t=231613)

srikanth_kannan 07-24-2010 03:46 AM

help needed in running a MIDLET in JDE 5.0.0
 
1 Attachment(s)
Hi,

I have developed a MIDLET using Netbeans IDE and the application works fine in all Ericson, nokia simulators and devices. I need to make the MIDLET run in a Blackberry Bold 9700. But, i have had problems even while running the MIDLET in the 9700 simulator. The MIDLET compiles and builds successfully, when i run it and go the Menu -> Downloads in the 9700 simulator, i could not find my application(mainMidlet) in there. I have also checked other folders in the simulator but in vain.

Initially i got the" module(mainMidlet) has verification errors" and i removed all the System.out. println() statements in my code and i could find my MIDLET in the Downloads folder of the 9700 simulator and when i clicked it, i got a pop-up Alert in the simulator saying "LWUIT module has verification errors". I also get the following message "source code not available" in the JDE screen(please see the attached screenshot".

Can someone help me out. I have been breaking my head for 2 days trying to figure out the reason.

Dougsg38p 07-24-2010 10:53 AM

You app will not start becuse the library has verification errors. YOu need to run preferify on the LLWUIT library, or recompile it yourself using the JDE.

The "source not available" is what happens when an exception is thrown from, or you step into, a module that does not have source in the current project. The JDE tries to find the soruce for the line currently executing, and when it cannot find the source you get this message.

srikanth_kannan 07-24-2010 02:57 PM

1 Attachment(s)
Thanks a lot for the suggestion Dougsg38p !

i have tried running preverify command with the following parameters

C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\bin>preverify -classpath "C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\lib\LWUIT.jar"

i could not make anything out from the output, which i have attached as a jpeg file in this message.

Can you brief the other method, how to recompile LWUIT using JDE ?

Dougsg38p 07-25-2010 09:21 AM

Take a look at this thread:

http://www.blackberryforums.com/deve...ighlight=LWUIT

You might also want to search the forum. There are several folks who use this library.

srikanth_kannan 07-26-2010 03:55 PM

After a lot of search, i got this solution and it works !

forums.java.net/jive/thread.jspa?messageID=372171 (add http to this, since i was not able to post links)

Scroll down to the bottom of the above forum and follow the set of 14 steps posted by ghady_rayess.


All times are GMT -5. The time now is 05:33 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.