Creating the BlackBerry Project

Create a new BlackBerry project in SAP Mobile WorkSpace. Add library resources to the project and set other application properties.

Prerequisites

To help create your project, and in a subsequent topic, build the user interface, download the SMP101 BlackBerry Object API (2.2 SP02) example project from the SAP Community Network (SCN) Web site at http://scn.sap.com/docs/DOC-8803.

Task
  1. Start SAP Mobile WorkSpace.
  2. Select File > New > Project.
  3. In the New Project window, select BlackBerry Project and click Next.
  4. In the Create a BlackBerry Project window, enter SMP101BlackBerry for the project name and click Next.

    BlackBerry Tutorial New BlackBerry Project Window
  5. In the Java Settings page, modify the build path to the sup_client2.jar and UltraLiteJ12.jar files:
    1. Click the Libraries tab.
    2. Click Add External JARs.
    3. Browse to SMP_HOME\MobileSDK23\ObjectAPI\BB.
    4. Select the two JAR files, then click Open.
    5. Click the Order and Export tab.
    6. Make sure the sup_client2.jar is selected.
      Select only sup_client2.jar in this tab because it is a third-party JAR file that does not have a cod file. You add the UltraLiteJ12.cod file in Copying SAP Mobile Platform Files to the Sample Project.
    The sup_client2.jar file is for the ObjectAPI client, and UltraLiteJ12.jar is the client database library.
  6. Click Next.
  7. In the Templates window, accept the default BlackBerry Application and click Next.
  8. In the Application Details window, enter these values and click Finish.
    • Package Name – com.mycorp.smp101.bb.app
    • Application Class Name – CustomerSample
    • Screen Class Name – CustomerSampleScreen
    • Screen Title – SMP101 BlackBerry

    BlackBerry Tutorial Application Details Window
  9. If prompted to use a different perspective, click No.