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
Posts: 59
Registered: ‎07-01-2009
My Device: Android HTC One X
My Carrier: Cellcom

Re: A small discussion about system modules

OK - it appears that versions compiled by Eclipse install fine, and versions compiled by me via ANT appear both in the Application list and the Modules list, but not anywhere else in the device. I cant fire em up.

The app. is a ported Midlet, compiled for BlackBerry via RAPC.

 

Is this a preverification issue? Anything else?

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

Re: A small discussion about system modules

Seems that you have set wrong parameters in ant script that does compile action.
Developer
Posts: 59
Registered: ‎07-01-2009
My Device: Android HTC One X
My Carrier: Cellcom

Re: 9000 - Tried OTA and USB installations - Can't find my app

Here is my ant task:

 

 <exec dir="${final.dir}" executable="${bb.home}/bin/rapc.exe">

<arg line=" import=${bb.home}/lib/net_rim_api.jar "/>

<arg line=" codename=${MIDletSuite} "/>

<arg line=" ${final.dir}/${MIDletSuite}.jad "/>

<arg line=" ${final.dir}/${MIDletSuite}.jar "/>

<arg line=" -quiet "/> </exec>

 

bb.home points to the jde 4.6 eclipse plugin.

 

Is there simething wrong here?

Developer
Posts: 59
Registered: ‎07-01-2009
My Device: Android HTC One X
My Carrier: Cellcom

Re: 9000 - Tried OTA and USB installations - Can't find my app

Something else worth noting: when installing the working version via OTA, the installation ends with the option to run the app. The other installs end with just the OK button. Also, the faulty ones do not raise the "untrusted application" warning.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: 9000 - Tried OTA and USB installations - Can't find my app

[ Edited ]

I would strongly recommend you to use BB Ant Tools: http://bb-ant-tools.sourceforge.net/docs

 

There is rapc task and use it instead of exec.

 

Message Edited by tbilisoft on 14-07-2009 04:07 PM
Developer
Posts: 59
Registered: ‎07-01-2009
My Device: Android HTC One X
My Carrier: Cellcom

Re: 9000 - Tried OTA and USB installations - Can't find my app

Seems that I have made some progress. My ant task was missing the -midlet parameter. But when I add it, RAPC does not modify the jad file, so no BB info is added.

 

For compitability with other projects here, I would like to try and solve this without using the ant-bb-pack.

 

So - how do I force RAPC to modify the JAD?

Highlighted
Developer
Posts: 59
Registered: ‎07-01-2009
My Device: Android HTC One X
My Carrier: Cellcom

Re: 9000 - Tried OTA and USB installations - Can't find my app

[ Edited ]

RAPC does not update the jad while the -midlet property is enabled. Therefore I decided to give up, and now I'm using bb-ant-tools' JADTOOL task to do the job. I still invoke RAPC through the EXEC task though. If it's working, don't fix it.

Message Edited by vaiden on 07-16-2009 09:32 AM