AK Joshi
AK Joshi

Reputation: 867

How to create jar in Blackberry Eclipse

How we can create a complete package to jar file , so we can use all functionality s of the particular package in another application . What I am doing is , I am selecting all the java files (in a particular package) and right click and select Export option and then select jar and follow other steps ..finally I am getting jar file ..but this is not working in my Blackberry project..

Upvotes: 0

Views: 450

Answers (1)

Nate
Nate

Reputation: 31045

You can make a BlackBerry project into a library project pretty easily.

If you're using the Eclipse plugin, then your BlackBerry project should have a BlackBerry_App_Descriptor.xml file. Open that in Eclipse, and on the Application tab, select Application type and then Library.

If you edit that xml file manually, you'll have something like this:

<Properties ModelVersion="1.1.2">
  <General Title="" Version="1.0.0" Vendor="BlackBerry Developer" Description=""/>
  <Application Type="Library" 
               MainMIDletName="" MainArgs="" HomeScreenPosition="0" StartupTier="7" IsSystemModule="true" IsAutostartup="false"/>

If you are using the old JDE toolset, here are some instructions.

Your library project should not have a public static void main(String[] args) method, like a normal App project.

Upvotes: 4

Related Questions