Help Center

Local Navigation

Run a MIDlet application in the BlackBerry Smartphone Simulator

You can import a MIDlet .jar file into a BlackBerry® application project and run the MIDlet application in the BlackBerry® Smartphone Simulator. You can import only one MIDlet .jar file into the BlackBerry application project. You must manually add any dependent library (.cod) files to the BlackBerry Smartphone Simulator.
Before you begin:

You must have a .jad and .jar file pair to add to the BlackBerry application project.

  1. Create a new BlackBerry application project, and add the .jad and .jar files to the project. Do not place the files in a source folder.
  2. In the Package Explorer view, right-click the BlackBerry application project.
  3. Click Properties.
  4. Click Java Build Path.
  5. On the Libraries tab, click Add JARs or Add External JARs.
  6. Navigate to the MIDlet .jar file that you want to add and click Open.
  7. On the Order and Export tab, select the MIDlet .jar file and click OK.
  8. Package the BlackBerry application project and run the application in the BlackBerry Smartphone Simulator. The .class files are zipped into the .cod file of the BlackBerry application project and added to the BlackBerry Smartphone Simulator.

Was this information helpful? Send us your comments.