Installing the net_rim_api.jar File

Depending on your Java development environment, install the net_rim_api.jar file (BlackBerry) to avoid code generation errors when generating Java code for native BlackBerry 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 <MobileApplicationProjectName>DB.java file, and appear because of dependencies on the net_rim_api.jar file if not in the project build path. You can avoid these errors by adding the net_rim_api.jar file to the build path for any projects for which you generate Java for BlackBerry code:

  1. From WorkSpace Navigator, right-click the Mobile Application project folder and select Properties.
  2. Select Project Natures > Java > OK, then right-click the project folder again and select Properties.
  3. Select Java Build Path, the Libraries tab, then select Add External JARs.
  4. Browse to and select the net_rim_api.jar file. For example: C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\lib\net_rim_api.jar. Click Open, then OK.
Related concepts
Code Generation Fails
SQL_MAX_ROW_SIZE_EXCEEDED
Related tasks
Cannot Generate Code with Javadoc Option Enabled
Related reference
Namespace Name Does Not Exist Error