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

BlackBerry® World™ Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 46
Registered: ‎06-23-2009
My Device: Not Specified
Accepted Solution

Signature tools on NetBeans

Hi,

i am trying to build blackberry application on NetBeans. Successfully done.
Now i want to build it with signature tools. Can someone please specify how do i go about it.

 

I have the signature tools registered. It works fine with ANT, but now i want to move to Netbeans.

 

Thanks,

Shikha

 

 

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Signature tools on NetBeans

Consider sigtool task of BB Ant Tools

 

It allows cod file signing from ant-script.

New Developer
Posts: 10
Registered: ‎06-01-2009
My Device: Not Specified

Re: Signature tools on NetBeans

I use Netbeans too, but I do not sign from Netbeans. I find the cod file created after a deployment build. Double clicking on that file brings up the Java Signature tool. Now click the request button and provide your password to sign that cod file.

 

Regards,

Carm.

 

Highlighted
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Signature tools on NetBeans

Carm, in some cases manual signing every time is very inconvenient.
Developer
Posts: 46
Registered: ‎06-23-2009
My Device: Not Specified

Re: Signature tools on NetBeans

Thanks Cram,

This helps. Right now i am stuck very badly with invoking the blackberry simulator from Netbeans. I need to do this for debugging my blackberry application.

 

I followed the steps at http://www.netbeans.org/kb/55/blackberry.html#addrim

 

Though its for Netbeans 5.5 while i am using Netbeans 6.5, but overall procedure can be understood.

 

After doing everything, i end up with this error,

 

Error preverifying class javax.microedition.midlet.MIDletMain

java/lang/NoClassDefFoundError: net/rim/device/internal/lcdui/MIDletInterface
C:\Shikha\BBerryApp\MobileApplication2\nbproject\build-impl.xml:475: Preverification failed with error code 1.
 

Please, help with any information you/anyone have in this regard.

 

Thanks,

Shikha

 

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Signature tools on NetBeans

In RIM API there is no such class exists javax.microedition.midlet.MIDletMain

 

It is the cause of the preverification problem.

 

Preverification checks your code that all classes/fields/methods have correct references in net_rim_api.jar (RIM API).

 

In RIM API there is no such class and because of that you get this error.

New Developer
Posts: 10
Registered: ‎06-01-2009
My Device: Not Specified

Re: Signature tools on NetBeans

Hi Shikha,

 

I'm on Netbeans 6.7M2 which was a beta version a while back. The simulator ran without any extra effort on my part.

 

These are the steps I took.

1) Installed Netbeans

2) Installed BB JDE 4.7

3) Installed plugin which adds BB support to Netbeans ( 1216539078247_org-netbeans-modules-mobility-plugins-blackberry.nbm )

 

Just make sure your project properties has BlackBerry JDE selected under platform. 

 

Note: I only program for the BB Storm, so I do not know if there would be issues with any other simulator. 

 

Regards,

Carm.

 

Developer
Posts: 46
Registered: ‎06-23-2009
My Device: Not Specified

Re: Signature tools on NetBeans

Thanks Tbilisoft & Carm.

 

There are 3 plugins (with different numbers)available for netbeans module mobility for blackberry.

Is 1216539078247 specific for something?

 

Thanks, 

Shikha

 

New Developer
Posts: 10
Registered: ‎06-01-2009
My Device: Not Specified

Re: Signature tools on NetBeans

That much I do not know. I think different people can submit similar plugins so you end up with more than one. Once again I am not really sure on that. All I can say, it's the one I installed and all is working well for me.

 

Regards,

Carm. 

Developer
Posts: 46
Registered: ‎06-23-2009
My Device: Not Specified

Re: Signature tools on NetBeans

Hi Carm,

 

I tried working with JDE4.7 & IDE 6.7M2. No luck.

 

Did u use 'Add Platform' to create Blackberry JDE as a platform? Also, did u modify build.xml to invoke the simulator?

 

For creating project, Did u use JavaME category & Mobile application as project?

 

Please help.

 

-Shikha