Run your application

After you build a project, you're ready to run it.

To run or debug your program, you must create both of the following:

  • a BlackBerry Tablet OS Target project, which specifies how the IDE communicates with your target; once you've created a target project, you can reuse it for every program that runs on that particular target. The preferred way to create a new target for BlackBerry Tablet OS is to use the BlackBerry Tablet OS Setup Deployment Wizard, either when you create a project (see Create a BlackBerry Tablet OS project ) or via the Signing preferences page (see Signing page ); otherwise, perform the steps below.
  • a launch configuration, which describes how the program runs on your target; you'll need to set this up only once for that particular program.
To run a project:
  1. To create a BlackBerry Target OS Target, from the menu, select File > New > Other… .
  2. In the list, expand BlackBerry Tablet OS.
  3. Select BlackBerry Target OS Target.
  4. Click Next.

    Screen showing the New BlackBerry Tablet OS Target dialog.

  5. In the Target Name area, you can either use the same name as your host, or you can specify a new name for your target.
    Although the wizard allows it, don't use any of the following characters in your target name as they may cause problems later:

    | ! $ ( " ) & ` : ; \ ' * ? [ ] # ~ = % < > { }

  6. In the Connection area, specify the name of your host, or the IP address you want to use for the connection.
  7. Click Finish. Your new BlackBerry Tablet OS Target System Project appears in the Project Explorer view. When you create a launch configuration, the target is listed under the Main tab in the Target Options pane. Note that you can use the Add New Target button in the Target Options pane to open the New Target System Project wizard.
    You can also reach the Target System Project wizard from within the Target Navigator view (right-click, then select Add New Target).
  8. Make sure you build your project first before you create a launch configuration for it.
  9. To create a launch configuration to run your project, in the Project Explorer view, expand the Binaries folder.
  10. Right-click on your project's executable file.
  11. Select Run As > BlackBerry Tablet OS C/C++ Application Dialog (or Run As > Blackberry Tablet OS C/C++ Application if one was created previously).

    Screen showing new launch configuration dialog.

  12. At a minimum, you are required to select a target for your project; however, take note of the many other options available on the various tabs.
Your program runs, and the IDE shows its output (if any) in the Console view.