I am new to Blackberry Development so Please inform me how to run existing midlet jar in blackberry using eclipse ide i am using eclipse Version: 3.4.1 with blackberry plugin and simulator is 8300...

Step By step information Please....

Dani AI

Generated

Brief practical checklist to run an existing MIDlet JAR on a BlackBerry from Eclipse. 's pointer to the official KB is a good reference, and 's follow-up shows the approach works. The steps below make the process explicit and add common troubleshooting notes you’ll need if the MIDlet doesn’t start in the 8300 simulator.

  1. Create a BlackBerry Java project in Eclipse (BlackBerry plug-in installed).

  2. Import the MIDlet JAR and its JAD (if you have one) into the project (put them in the project root or a resources folder; leave compiled source under src if present).

  3. Find the MIDlet entry (the full class name that extends javax.microedition.midlet.MIDlet). Check the JAD for a line like:

    MIDlet-1: MyApp, /icon.png, com.example.MyMidlet

    If there is no JAD, list the JAR contents (jar tf myapp.jar) and inspect classes or MANIFEST.MF.

  4. Open Project → Properties → BlackBerry Project Properties (Application) and set the Application Type to MIDlet and supply the MIDlet class name from step 3. Save, clean and build. Run with Run As → BlackBerry Simulator (or Debug As to use breakpoints).

Troubleshooting checklist

  • ClassNotFound / NoClassDefFound: confirm the MIDlet class is present in the JAR you imported and the JAD points to it.
  • Missing APIs: MIDlets that rely on optional JSRs or newer Java ME features may fail on the 8300 simulator; use a simulator/SDK matching the target device OS.
  • No source: attach source or use logging; debugging requires source access for breakpoints to be useful.
  • If the simulator never lists the app, re-import the JAD/JAR and ensure the project build target SDK matches the simulator.

Note: this applies to legacy BlackBerry Java (OS 4–7) and the BlackBerry Java plug-in. BlackBerry 10 and newer devices do not run J2ME MIDlets natively; a different porting/runtime path is required.

Recommended Answers

All 2 Replies

Official article by BlackBerry

thanks i got the out put...its very simple.. just we have to add jar and jad files in project and bulid the project or copy all source folder our project to the src folder for BB project and in in Properties we have add all resource files. and requried things like BB project Properties Applcation type should be Midlet and have to give the Class name of Midlet and debugging

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.