CLDC Emulator Installation for a Device Running Windows Mobile
This shows describes a sample installation using the Windows platform and Microsoft ActiveSync.
This procedure can be adapted for Mac OS; download device synchronization software for Mac
OS, and use it in place of ActiveSync.
- Connect the device to your host computer and register it with ActiveSync. If
you are using Mac OS, use an alternate tool.
- Make a copy of the Sun Java CLDC Emulation Installation CAB file.
- Navigate to JavaMESdkHome/on-device/winmobile-arm.
- Copy sun-java-cldc-emu.cab.
- Paste the CAB file into the device root directory.
- In Windows Explorer, open Mobile Device.
- Open My Windows Mobile-Based Device.
- Open the Edit menu.
- Click Paste to insert the CAB file.
- Run the File Explorer on your device.
- Open the Start menu.
- Click Programs.
- Click File Explorer.
- Start the CAB installation on the device.
- Open the Show menu.
- Select My Device.
- Click on the sun-java-cldc-emu.cab file.
- If asked during the installation, install the application on the device.
- Wait for the installation to finish.
- You can delete the CAB file after the installation is complete.
- Press on sun-java-cldc-emu.cab label until the context menu opens.
- Click Delete.
- Run the Sun Java CLDC Emulation on the device.
- Open Start menu.
- Click Programs.
- Click Sun Java CLDC EMU.
- Wait for the Sun Java CLDC Emulation to start.
- Confirm the connection to the device.
Allow up to 30 seconds (the default value) for Java ME SDK to
recognize the connected device and the Sun Java CLDC emulation software.
To add the device, see Adding Devices With the Device Wizard (Mac OS). You can test the connection as described
in Wireless Debugging Procedure, Step 7.
The Detected Device
When the device is recognized a new device with the name, 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.
If you run the emulator from the command line it can be used
as an argument. For example:
emulator -Xdevice:CldcWinceEmu1 ...
Sample CLDC Debugging Session