Installing the net_rim_api.jar File

Install the net_rim_api.jar file to avoid code generation errors when generating Java code for BlackBerry native application development.

After generating Java code for BlackBerry, error icons appear next to the project for which you generated the code. These errors can be viewed in the Problems view and usually in the project's DB.java file, and appear because of dependencies on the net_rim_api.jar file if it is not in the project build path. Because you typically build the application using either the BlackBerry Java Plug-in for Eclipse (eJDE) or BlackBerry JDE you can ignore these errors, however, you can avoid them by following this procedure for any projects for which you generate Java code for BlackBerry.

  1. Install the BlackBerry development environment.
    See Installing the BlackBerry Development Environment in the Developer Guide for BlackBerry
  2. Right-click the Mobile Application Project, and select Properties.
  3. Select Java Build Path.
  4. Select the Libraries tab, and click Add External Jars.
  5. locate and select the net_rim_api.jar file, which depends on where the JDE is installed. For example, C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\lib.
  6. Click OK until you exit the dialog.