Managing mobile runtime platforms

Managing mobile runtimes includes: Note: The project's mobile runtime platform is defined when creating the MTJ project. However, you can also change the runtime and device settings from MTJ preferences, too.

Creating a mobile runtime platform

  1. In the menu bar, select Window -> Preferences -> Mobile Tools for the Java Platform -> Runtime Platform.
    The Preferences window opens with the Runtime Platform pane.
  2. In the Runtime Platforms field, select Add.
    The Runtime platform window opens.
  3. In the Runtime Platform field, the system displays the default name and description for the runtime platform. If you want to edit these defaults:
  4. In the Device Platforms field, select Import.
    The Device Platform window opens.
  5. In the Location field, select Browse and browse to the main root of the desired device platform (the desired mobile SDK) and click OK.
    The Device Platforms field displays the chosen SDK
  6. In the Device Platforms field, expand the SDK and uncheck those devices or emulators that you do not wish to include in the runtime platform.
  7. Click OK.
    The runtime platform is added to the Runtime platforms list.

 

Editing the project's mobile runtime

  1. In the menu bar, select Window -> Preferences -> Mobile Tools for the Java Platform -> Runtime Platform.
    The Preferences window opens with the Runtime Platform pane.
  2. In the Runtime Platforms field, highlight the runtime that you want to edit and select Edit.
    The Runtime Platform window opens.


  3. In the Device Platforms field:
    1. If you want to change the device platform for your runtime, check the box next to the desired device platform.
    2. If you want to import a new mobile SDK into MTJ, select import and define the settings for the new device platform in the Add Mobile Device Platform window.
  4. In the RuntimePlatform field, you can edit the name and description of your runtime in the Name and Description fields.
  5. Click OK.

The Preference window displays the changes in the Runtime Platform pane.

Editing device settings in mobile runtime configuration

  1. In the menu bar, select Window -> Preferences -> Mobile Tools for the Java Platform -> Runtime Platform.
    The Preferences window opens with the Runtime Platform pane.
  2. In the RuntimePlatforms field, highlight the runtime whose device settings you want to edit.
    The Devices field lists the devices assigned for that particular runtime.
  3. In the Devices field, check the box next to the device whose settings you want to edit, and click edit.
    The Runtime Platform window opens.

  4. In the Runtime Platform window:
    1. If you want to change the Java ME profile, in the Profiles field, click the radio-button next to the desired profile.
    2. If you want to change the Java ME configuration, in the Configurations field, click the radio-button next to the desired configuration.
    3. If you want to add or remove the Service APIs for the device, in the Service APIs field, clear the boxes next to those APIs you want to remove and check the boxes next to those APIs you want to add.
  5. Click OK.
Note: Besides Preferences, you can also access the project's settings through the Package Explorer view, by right-clicking the desired project and selecting Properties from the pop-up menu that appears.


Mobile SDKs


Managing mobile SDKs


Preferences