Create a workspace for your BlackBerry Messenger connected application using the BlackBerry Java Development Environment

Before you begin: In the folder where you extracted the BlackBerry Messenger SDK, copy net_rim_bb_qm_platform.jar from the BBM SDK folder to the lib folder of the BlackBerry Java Development Environment (the default location of the lib folder is C:\Program Files\Research In Motion\BlackBerry JDE 6.0.0\lib).
  1. In the BlackBerry JDE, click File > New Workspace.
  2. In the Workspace Name field, type a name for the workspace and click OK.
  3. Right-click the workspace and click Properties.
  4. In the Workspace Properties dialog box, in the General tab, beside the Imported Jar Files list, click Add.
  5. In the Add file dialog box, navigate to C:\Program Files\Research In Motion\BlackBerry JDE 6.0.0\lib and double click the net_rim_bb_qm_platform.jar file. The file appears in the Imported Jar Files list in your workspace properties. You can now import the BlackBerry Messenger classes and compile your application.
  6. Right-click the workspace and perform one of the following actions:
    • To import an existing project, click Add Project to <workspace name>.
    • To create a new project, click Create new Project in <workspace name>.
  7. When you are ready to build your project, click the BlackBerry Smartphone Simulator profile drop-down list located in the top-right corner of the BlackBerry JDE. By default, the selected profile is Default Simulator.
  8. In the drop-down list, click 9800-6.0.0.313.
  9. On the Build menu, click Build. The .cod files for your application are created and placed in the simulators directory of the BlackBerry JDE.
After you finish:

To test your application, see Running your BlackBerry Messenger connected application.


Was this information helpful? Send us your comments.