Installing the net_rim_api.jar or android.jar File

Depending on your Java development environment, install either the net_rim_api.jar file (BlackBerry) or the android.jar file (Android) to avoid code generation errors when generating Java code for native application development.

After generating Java code for BlackBerry or Android, 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 or android.jar file if not in the project build path. You can avoid these errors by following this procedure for any projects for which you generate Java code:

  1. Install the BlackBerry or Android development environment.
  2. During code generation, set Third-party jar file to the appropriate JAR file. For example, for BlackBerry locate 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.
Related concepts
SQL_MAX_ROW_SIZE_EXCEEDED
Windows Mobile Code Generation Fails During Compilation
Code Generation Fails
Related tasks
Cannot Generate Code with Javadoc Option Enabled
Related reference
Namespace Name Does Not Exist Error