Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0

Get PDF Book Print View

Document Information

Getting Started

Java ME Platform SDK Features

Using Sample Projects

Creating and Editing Projects

Viewing and Editing Project Properties

Running Projects in the Emulator

Searching the WURFL Device Database

Finding Files in the Multiple User Environment

Profiling Applications

Monitoring Network Traffic

Lightweight UI Toolkit

Security and MIDlet Signing

BD-J Support

CLDC Emulation on a Windows Mobile Device

CLDC Emulator Installation for a Device Running Windows Mobile

Testing On-device Debugging

Installing CLDC Emulation on a Windows Mobile Emulator

On-device Debugging

Command Line Reference


JSR Support

JSR 75: PDA Optional Packages

JSR 82: Bluetooth and OBEX Support

JSR 135: Mobile Media API Support

JSR 172: Web Services Support

JSR 177: Smart Card Security (SATSA)

JSR 179: Location API Support

JSRs 184, 226, and 239: Graphics Capabilities

JSR 205: Wireless Messaging API (WMA) Support

JSR 211: Content Handler API (CHAPI)

JSR 238: Mobile Internationalization API (MIA)

JSR 229: Payment API Support

JSR 256: Mobile Sensor API Support


CLDC Emulator Installation for a Device Running Windows Mobile

  1. Connect the device to your host computer and register it with ActiveSync.

  2. Copy the Sun Java CLDC Emulation Installation CAB file onto the clipboard using Windows Explorer.

    1. Browse to JavaMESdkHome\emulator-dev-install.

    2. Right-click on sun-java-cldc-emu.cab.

    3. Select Copy from the context menu.

  3. Paste the CAB file into the device root directory.

    1. In Windows Explorer, open Mobile Device.

      Open mobile device
    2. Open My Windows Mobile-Based Device.

      Open mobile-based device
    3. Open the Edit menu.

      Open mobile edit menu
    4. Click Paste to insert the CAB file.

  4. Run the File Explorer on your device.

    1. Open the Start menu.

    2. Click Programs.

      Open Start then click Programs
    3. Click File Explorer.

      Click File Explorer
  5. Start the CAB installation on the device.

    1. Open the Show menu.

    2. Select My Device.

      Select My Device
    3. Click on the sun-java-cldc-emu.cab file.

  6. If asked during the installation, install the application on the device.

  7. Wait for the installation to finish.

  8. You can delete the CAB file after the installation is complete.

    1. Press on sun-java-cldc-emu.cab label until the context menu opens.

    2. Click Delete.

      Delete CAB
  9. Run the Sun Java CLDC Emulation on the device.

    1. Open Start menu.

    2. Click Programs.

      Select Programs
    3. Click Sun Java CLDC EMU.

      Select Sun Java CLDC Emu
  10. Wait for the Sun Java CLDC Emulation to start.

    Wait for Sun Java CLDC Emulation to begin
  11. Allow up to 30 seconds (the default value) for Java ME SDK to recognize the connected device and the Sun Java CLDC emulation software.

    When the device is recognized a new device, CldcWinceEmunumber (for example, CldcWinceEmu1) should appear in the Device Selector window, and the output from the command emulator.exe -Xquery should also be displayed.

    You can select this device as a target device in the user interface, or if you run the emulator from the command line it can be used as an argument. For example:

    emulator -Xdevice:CldcWinceEmu1 ...

See Testing On-device Debugging.