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


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
Highlighted
New Developer
Posts: 4
Registered: ‎11-05-2008
My Device: Not Specified

generating the new jad-file using rapc

Hi,

 

I'm generating a cod-file using rapc. I have a jad-file in which I need to have required RIM-information, which is provided when compiling with rapc.jar but not only the details of the jar/cod are included but the numerous debug-files as well. Is there a way to generate the new jad file without the information from the debug files or altogether the debug files from compiling?

 

Thank you

Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: generating the new jad-file using rapc

What does your command line look like? I haven't seen this problem but taking stuff out is easy with "awk."

This would integrate into my build environment, since I already use awk to change the paths and various

other things in preparation for automated upload to a test server for OTA testing, but it may be an odd thing

to add if you are set up differently.

 

I think I routinely get debug and jar files along with the signed cod and jad and I just ignore them.

Is there something you want to accomplish by not generating them?

 

 

New Developer
Posts: 4
Registered: ‎11-05-2008
My Device: Not Specified

Re: generating the new jad-file using rapc

Hi. Thanks for your answer.

 

I need to get rid of the reduntant file info in the jad because the cod will be downloaded by customers.

 

This is what my command looks like:

 

java -jar /library/rapc.jar import=/library/java/net_rim_api.jar -midlet folder/TEST.jar
 

And yes, cleaning up the jad in unix-environment is not a problem but I need to be able to compile in Windows too. Suppose you could get awk in Windows too but I'd really prefer if the jads would not be generated in the way they are now

Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: generating the new jad-file using rapc

I'm using cygwin for everything but I'm not sure what you are doing as the "way they are now" to generate

a jad file. IIRC, one problem was spurious stuff in the input jad. I think it just appends to whatever it already finds there ( at least that is what it seemed to do before, I buried all those details and haven't looked lately). IF this is true, it

may be a matter or removing the old one before compiling. In any case, post processing with things like

absolute url's that depend on the ultimate deployment location probably belong in something like awk, or

at least some text processing cleanup kluge, as I'm not sure what tools generally support deployment details

like I have run into. On other phones, where you expect to read parameters from your jad, where does the build

environment set these up automatically? Again here, I was using awk to read jad info from a build spec.