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

Reply
Developer
shikha
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
ComputerTimeCO
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.

 

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
shikha
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
ComputerTimeCO
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
shikha
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
ComputerTimeCO
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
shikha
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