Creating the BlackBerry Project

Goal: Create a new BlackBerry project.

Prerequisites
Installing the BlackBerry Java Plug-in for Eclipse
Task
  1. From the Eclipse menu, select New > Other > BlackBerry > BlackBerry Project.
  2. In the New BlackBerry Project wizard, use these values and click Next.
    • Name – enter SUP101Sample
    • Use a project specific JRE – select BlackBerry JRE 4.6.1
    bb_newbb_project
  3. In Java Settings, modify the build path to point to the correct location for sup-client-rim.jar and UltraLiteJ.jar.
    1. Click the Libraries tab.
    2. Click Add External Jars.
    3. Browse to sup-client-rim.jar, located in <UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\UnwiredServer\ClientAPI\java\RIM42, select it and click Open.
    4. Click Add External Jars.
    5. Browse to UltraLiteJ.jar located in <UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\UnwiredServer\ClientAPI\UltraliteJ\BlackBerry4.2, select it and click Open.
    6. Click Finish.
  4. In the SUP101Sample descriptor tab:
    1. In Title, enter SUP101Sample.
    2. In Application Icons, click Add External and browse to uep_ribbon_icon.png, located in <UnwiriedPlatform_InstallDir>\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.bob.rim_1.5.2.<version>\generate\blackberry\build-4.6.1\images\uep_ribbon_icon.png, and click Open to add the image.

      bb_sampleapp_descriptor
  5. Save the SUP101Sample descriptor file.
  6. Copy these files to the BlackBerry Simulator directory that is located in the Eclipse plugins' corresponding component package folder, for example, <UnwiredPlatform_InstallDir>\UnwiredPlatform\Eclipse\plugins\net.rim.ejde.componentpack4.6.1_4.6.1.49\components\simulator:
    • Copy sup-client-rim.cod from <UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\UnwiredServer\ClientAPI\java\RIM42 to the BlackBerry Simulator directory.
    • Copy UltraLiteJ.cod from <UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\UnwiredServer\ClientAPI\UltraliteJ\BlackBerry4.2 to the BlackBerry Simulator directory.
  7. Copy the SUP101 folder from the SUP101 project path SUP101\Generated Code\src to SUP101Sample\src.