Adding mobile SDKs to Eclipse

In MTJ, you can add SDKs in the MTJ Preferences.

To add a SDK to MTJ

Make sure the SDK you want to add to MTJ is installed in your computer.

  1. In the file menu, select Window -> Preferences.
    The Preferences window opens.
    Note
    : You can cancel the process at any time by selecting Cancel.
  2. In the Preferences window, in the left-side pane, expand MTJ and select Device Platforms.
    The Device Platform pane opens on the right side.

  3. Select Add.
    The Add Mobile Device Platform window opens.
  4. In the Platform Provider drop-down menu, select the desired SDK type.
  5. In the Location directory field:
      • enter the file path for the mobile SDK

OR

  1. In the Add Mobile Device Platform window, you can specify which mobile runtimes from the selected SDK you want to include in this configuration. Depending on the selected SDK, check the runtimes you want to include in the Device Platforms field.
  2. Click OK.
    The selected mobile SDK is added in the DevicePlatforms list. This mobile SDK is now available for your MTJ projects.

Tip: When you highlight a mobile SDK in the DevicePlatform list, the selected devices for that particular configuration of the SDK are displayed in the devices list. By selecting a device from the Devices list, you can select Info to diplay the Device window. In this window, you can edit the device settings, such as the Java ME Profile and configuration.


Mobile SDKs

Mobile runtimes


Managing mobile SDKs

Creating your first MIDlet


Preferences