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
- In the Package Explorer view, right-click the project that you want to add a dependency to.
- Click Build Path > Configure Build Path.
- Click the Projects tab.
- Click Add.
- 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.
- Click OK.
Add a .jar file dependency
- In the Package Explorer view, right-click the project that you want to add a dependency to.
- Click Build Path > Configure Build Path.
- Click the Libraries tab.
- 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.
- 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.
- Click OK.
Specify the application settings for a BlackBerry application project
- In the Package Explorer view, right-click a BlackBerry application project and click Properties.
- In the Properties for pane, click BlackBerry Project.
- Click Application Descriptor.
- Click the Application tab.
- Specify the application settings.
- On the Eclipse toolbar, click Save.
Specify compiler settings for a BlackBerry application project
- In the Navigator view, select a BlackBerry application project.
- Right-click the project and select Properties.
- In the Properties for pane, select BlackBerry Project Properties.
- Click the Build tab.
- Change the compiler settings.
- Click Apply.
- Click OK.
Specify the build settings for a BlackBerry application project
- In the Package Explorer view, select a BlackBerry application project.
- Right-click the project and click Properties.
- In the Properties for pane, select BlackBerry Project > Application Descriptor.
- Click the Build tab.
- Specify the build settings.
- Click Close.
- Click Yes.
Specify the alternate entry point settings for a BlackBerry application project
- In the Package Explorer view, select a BlackBerry application project.
- Right-click the project and click Properties.
- In the Properties for pane, select BlackBerry Project > Application Descriptor.
- Click the Alternate Entry Points tab.
- Click Add.
- In the New Entry Point dialog box, type the name and associated arguments of a project in the workspace that this project invokes.
- Click OK.
- Select the Alternate entry point properties and Locale Resources.
- On the Eclipse toolbar, click Save.
Create a launch configuration for a BlackBerry application project (Windows)
- On the Run menu, click Run Configurations or Debug Configurations.
- Right-click BlackBerry Simulator, and click New.
- On the Projects tab, click the project that you want to create a configuration for.
- On the JRE tab, click the JRE that you want to use.
- On the Simulator tab, configure the settings for the BlackBerry Smartphone Simulator.
- Click Close.
- Click Yes.