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:

To create a BlackBerry Target OS Target, from the menu, select File
> New
> Other….

In the list, expand BlackBerry Tablet OS.

Select BlackBerry Target OS Target.

Click Next.

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:

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

In the Connection area, specify the name of your host,
or the IP address you want to use for the connection.

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).

Make sure you build your project first before you create a launch configuration for
it.

To create a launch configuration to run your project, in the Project Explorer view, expand
the Binaries folder.

Right-click on your project's executable file.

Select
Run As
> BlackBerry Tablet OS C/C++ Application Dialog (or Run As
> Blackberry Tablet OS C/C++ Application if one was created
previously).

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.