Setting up in Eclipse
To setup your application in Eclipse, perform the following tasks:
- Download and install the
BlackBerry Java Plug-in for
Eclipse.
To download for Windows XP,Windows Vista, or Windows 7, visit https://bdsc.webapps.blackberry.com/java/download/eclipse. To download for Mac OS, visit https://bdsc.webapps.blackberry.com/java/download/eclipse?os=mac.
- Extract the files from the Advertising Service SDK to an appropriate location on your computer.
- Create a BlackBerry application project.
- Add the Advertising Service library to your project.
- Add Javadoc comments for the Advertising Service API to your project (optional).
Create a BlackBerry application project
You must create a separate project for each version of BlackBerry Device Software that your application runs on.
- In Eclipse, on the File menu, click New > Project.
- Expand the BlackBerry folder and select BlackBerry Project.
- Click Next.
- In the Project name field, type a name for the project.
- Select the Create new project in workspace option.
- Specify the version of BlackBerry Device Software that your application is designed to run on by performing one of the following actions:
- Click Next.
- Click Finish.
Add the Advertising Service library to your project
- In Eclipse, in the Package Explorer view, right-click your project.
- Click Build Path > Configure Build Path.
- On the Libraries tab, click Add External JARS.
- Navigate to the location that you extracted the Advertising Service SDK to and double-click the folder for the version of BlackBerry Device Software that your application is designed to run on (for example, double-click the 6.0 folder if the application runs on BlackBerry 6).
- Double-click the net_rim_bbapi_adv_app.jar file to add the library file to the project.
- On the Order and Export tab, select the net_rim_bbapi_adv_app.jar check box.
- Click OK.
Add Javadoc comments for the Advertising Service API to your project
To permit the
Javadoc comments for the
Advertising
Service API to display when you move the pointer over a class name or method name in a
Java source file, you must add the .html files that contain the
Javadoc comments to your project.
- In Eclipse, in the Package Explorer view, right-click the project that you want to add the Javadoc comments to.
- Click Build Path > Configure Build Path.
- On the Libraries tab, expand the .jar file for the Advertising Service library.
- Click Javadoc location: None.
- Click Edit.
- Navigate to the location that you extracted the Advertising Service SDK to and click the Javadoc folder.
- Click OK.
- Click Validate to verify that the folder contains valid Javadoc files.
- Click OK.
Previous topic: System requirements