Sorry about the red box, but we really need you to update your browser. Read this excellent article if you're wondering why we are no longer supporting this browser version. Go to Browse Happy for browser suggestions and how to update.

Project dependencies

You can use project dependencies to help save time and reduce code duplication when you create a BlackBerry application.

Add a project dependency

  1. In the Package Explorer view, right-click the project that you want to add a dependency to.
  2. Click Build Path > Configure Build Path.
  3. Click the Projects tab.
  4. Click Add.
  5. Select the project that you want this project to depend on.

    You must select either a Java application project or a BlackBerry application project of the Library type.

  6. Click OK.

Add a .jar file dependency

  1. In the Package Explorer view, right-click the project that you want to add a dependency to.
  2. Click Build Path > Configure Build Path.
  3. Click the Libraries tab.
  4. Complete one of the following tasks:
    • If the .jar file is in the current workspace, click Add JARS.
    • If the .jar file is not in the current workspace, click Add External JARS.
  5. Select the .jar file that you want this project to depend on.

    The .jar file must be generated by a Java application project. You cannot add a BlackBerry application project of the Library type in this manner.

  6. Click OK.

Specify the application settings for a BlackBerry application project

  1. In the Package Explorer view, right-click a BlackBerry application project and click Properties.
  2. In the Properties for pane, click BlackBerry Project.
  3. Click Application Descriptor.
  4. Click the Application tab.
  5. Specify the application settings.
  6. On the Eclipse toolbar, click Save.

Specify compiler settings for a BlackBerry application project

  1. In the Navigator view, select a BlackBerry application project.
  2. Right-click the project and select Properties.
  3. In the Properties for pane, select BlackBerry Project Properties.
  4. Click the Build tab.
  5. Change the compiler settings.
  6. Click Apply.
  7. Click OK.

Specify the build settings for a BlackBerry application project

  1. In the Package Explorer view, select a BlackBerry application project.
  2. Right-click the project and click Properties.
  3. In the Properties for pane, select BlackBerry Project > Application Descriptor.
  4. Click the Build tab.
  5. Specify the build settings.
  6. Click Close.
  7. Click Yes.

Specify the alternate entry point settings for a BlackBerry application project

  1. In the Package Explorer view, select a BlackBerry application project.
  2. Right-click the project and click Properties.
  3. In the Properties for pane, select BlackBerry Project > Application Descriptor.
  4. Click the Alternate Entry Points tab.
  5. Click Add.
  6. In the New Entry Point dialog box, type the name and associated arguments of a project in the workspace that this project invokes.
  7. Click OK.
  8. Select the Alternate entry point properties and Locale Resources.
  9. On the Eclipse toolbar, click Save.

Create a launch configuration for a BlackBerry application project (Windows)

  1. On the Run menu, click Run Configurations or Debug Configurations.
  2. Right-click BlackBerry Simulator, and click New.
  3. On the Projects tab, click the project that you want to create a configuration for.
  4. On the JRE tab, click the JRE that you want to use.
  5. On the Simulator tab, configure the settings for the BlackBerry Smartphone Simulator.
  6. Click Close.
  7. Click Yes.