Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0, Mac OS

Get PDF Book Print View

Document Information

Getting Started


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

Network Monitoring

Lightweight UI Toolkit

Security and MIDlet Signing

CLDC Emulation on a Windows Mobile Device

Installing CLDC Emulation on a Windows Mobile Emulator (Windows Only)

On-device Debugging

On-device Debugging Procedure

Wireless Debugging Procedure

Attach a Command Line Debugger

Attach a Graphical Debugger

Sample CLDC Debugging Session

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

JSR 180: SIP Communications

JSR 184: Mobile 3D Graphics

JSR 205: Wireless Messaging API (WMA) Support

JSR 211: Content Handler API (CHAPI)

JSR 226: Scalable 2D Vector Graphics

JSR 229: Payment API Support

JSR 238: Mobile Internationalization API (MIA)

JSR 256: Mobile Sensor API Support


Wireless Debugging Procedure

If you have a Windows Mobile device that supports Wi-Fi and a Wi-Fi enabled computer or wireless router, you can debug an application without a physical connection. Install the Java ME runtime on the device as described in CLDC Emulator Installation for a Device Running Windows Mobile.

Note, multiple phones can be connected simultaneously.

  1. Make sure that your computer is running and somehow accessible via Wi-Fi.

    There is no difference between plugging it into Wi-Fi enabled router and starting an ad-hoc network on the computer.

  2. On the device, turn on Wi-Fi, then find its IP address and write it down.

    This can be different for different vendors and models, so check the documentation shipped with your device. A good point to start your search might be START > Settings > Connections > WLAN Settings > Connection Status.

  3. On the host, run one of the following commands to ensure that the computer can access the device:

    ping device-ip

    tracert device-ip

  4. Start the Sun Java CLDC Emulator runtime. See CLDC Emulator Installation for a Device Running Windows Mobile, Step 9 through Step 11.
  5. In a command window, go to /bin. Type:


    device-address.exe add ip device-ip

    Mac OS

    installdir/Contents/Resources/bin/device-address add ip device-ip

    If you use a wireless router you can probably configure its DHCP server to always assign the same IP address to your device. If you can, you don’t need to run the device-address command every time because your device will be detected and added to the wireless network.

  6. Wait a few seconds, then check for the newly connected device:


    emulator.exe -Xquery

    Mac OS

    installdir/Contents/Resources/bin/emulator -Xquery

    Xquery returns the device name. You can also start the SDK user interface and look for the new device in the Device Selector panel.

  7. Test the connection.

    The device should work like any other device or emulator. From the /bin directory, try these commands to install a MIDlet on the device:


    emulator.exe -Xdescriptor:C:\Java_ME_platform_SDK_3.0\apps\Games\dist\Games.jad              -Xdevice:device-name-from-Xquery

    Mac OS

    emulator -Xdescriptor:../apps/Games/dist/Games.jad -Xdevice:device-name-from-Xquery
  8. Start the project in Debug Mode, as described in On-device Debugging Procedure.
  9. Test debugging.

    See the debugging procedures in Attach a Graphical Debugger and Sample CLDC Debugging Session.