BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-29-2010, 07:24 AM   #1 (permalink)
New Member
 
Join Date: Mar 2010
Model: 8300
PIN: N/A
Carrier: EDGE
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Distributing Blackberry helper API

Please Login to Remove!

Hello,

I am new to BB development and finding some trouble in understanding how to package a sample application for Blackberry.

I use Eclipse Plugin for Blackberry Development.

I have a sample application(say a HelloWorld application) and want to package and distribute.

1. What are the ways i can do it?
I see that by generating jad and cod files for the project i will be able to download it to my BB and install it. So what is the purpose of the .alx file?

2. also i find some .debug,.cso,.csl,.rapc and a .jar file in myh eclipse project. What is the purpose of the .jar generated here?

2. what if i dont have an application but only a helper API that i have created which can be used in other Blackberry applications. How should i package this? a jar? or a cod? file is needed.

Any suggestions/information regarding packaging would be really helpful. I am looking towards packaging an API which another developer can use in his blackberry application. So what is the best way to package this.?
Offline  
Old 03-29-2010, 02:50 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2010
Model: N/A
PIN: N/A
Carrier: Fledge
Posts: 43
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Best way for over the air deployment is by uploading both the .JAD and the .COD files to a web server. Sometimes the .cod file is actually multiple .cod files and you need to extract it using 7-zip or some other zip utility before you can upload it to the web server.

If you want to make a library (not a stand alone application) this can be done easily within Eclipse. If you go to Project -> Properties and click on the Application tab, you can choose to have your application be a "Library" rather than a "CLDC Application". You can use an external library in your current project by going to Project -> Properties -> Project References and adding the library to your references.

The other files are not useful for over the air deployment, I regret that I can't give you the exact details on what they do.

Last edited by jacob.tabak : 03-29-2010 at 02:52 PM.
Offline  
Old 03-29-2010, 03:54 PM   #3 (permalink)
New Member
 
Join Date: Mar 2010
Model: 8300
PIN: N/A
Carrier: EDGE
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Hey!!

Thanks Jacob.

After a lot of googling around found this link on how to create a library

http%3A//blackberry-tips-bikas.blogspot.com/2010/02/how-to-create-library-jar-file-and-use.html%5DBlackBerry%20Tricks%20and%20Tips%20and% 20Codes%3A%20How%20to%20create%20library%20jar%20f ile%20and%20use%20that%20jar%20in%20another%20proj ect

I was wondering why all the other files are generated when only the .jad and .cod makes sense.

I guess the .alx is used for installation using a Javaloader or Desktop Manager in the BB.
Offline  
Old 03-29-2010, 03:54 PM   #4 (permalink)
New Member
 
Join Date: Mar 2010
Model: 8300
PIN: N/A
Carrier: EDGE
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry for encoding the URL and pasting it here. Might be useful for someone who needs the information.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.