Managing mobile runtime platforms
Managing mobile runtimes includes:
- Creating mobile runtime platforms
- Editing mobile runtime platforms
- Editing the device settings of a mobile runtime platform
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
- In the menu bar,
select Window -> Preferences -> Mobile Tools for the
Java Platform -> Runtime Platform.
The Preferences window opens with the Runtime Platform pane.
- In the Runtime
Platforms field, select Add.
The Runtime platform window opens.
- In the Runtime
Platform field, the system displays
the default name and description for the runtime platform. If you want
to edit these defaults:
- In the Name field, you can enter an optional name for
the runtime platform.
- In the Description field, you can enter an optional description
for the runtime platform.
- In the Device
Platforms field, select Import.
The Device Platform window opens.
- 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
- 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.
- Click OK.
The runtime platform is added to the Runtime platforms list.
Editing the project's mobile runtime
- In the menu bar,
select Window -> Preferences -> Mobile
Tools for the Java Platform -> Runtime Platform.
The Preferences window opens with the Runtime Platform pane.
- In the Runtime
Platforms field, highlight the
runtime that you want to edit and select Edit.
The Runtime Platform window opens.

- In the Device
Platforms field:
- If you want
to change the device platform for your runtime, check the box next to
the desired device platform.
- 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.
- In the RuntimePlatform field, you can edit the name and description
of your runtime in the Name and Description fields.
- Click OK.
The Preference window displays the
changes in the Runtime Platform pane.
Editing device settings
in mobile runtime configuration
- In the menu bar, select Window
-> Preferences -> Mobile Tools for the Java Platform -> Runtime
Platform.
The Preferences window opens with the Runtime Platform pane.
- 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.
- 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.

- In the Runtime Platform window:
- If you want to change the Java ME profile, in
the Profiles field, click the
radio-button next to the desired profile.
- If you want to change the Java ME configuration,
in the Configurations field, click
the radio-button next to the desired configuration.
- 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.
- 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