Exit Print View

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

Get PDF Book Print View
 

Document Information

Getting Started

Features

Using Sample Projects

Creating and Editing Projects

Viewing and Editing Project Properties

Running Projects in the Emulator

Emulating Devices

Viewing Device Properties

Setting Device Properties

Opening a Serial Port

Running a Project from the Device Selector

Running Projects Simultaneously on a Single Device

Emulator Options

Adding a Device Instance

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

Command Line Reference

Logs

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

Index


Emulating Devices

The emulator runs applications on an emulated device or a real device. Before you can run an application from the SDK, the Device Manager, which manages both emulated and real devices, must be running. When the Java ME Platform SDK runs, the Device Manager automatically launches and starts detecting devices. The default devices shipped with the SDK are automatically found and displayed in the Device Selector window.

The Device Manager on Windows

The Device Manager is a service and you can see it running in your Windows system tray. In the task manager, the process is labeled device-manager.exe.

The Device Manager icon looks like this: Device Manager

You can right-click on the icon and select Exit to stop the service.

Device Manager exit
The Device Manager on Mac OS

When the Device Manager is running you can see its icon on the right side of the system tool bar Device Manager icon in toolbar. Click the icon to launch the Device Address Manager, or to exit the Device Manager.

Device Manager toolbar

If the Device Manager Icon is Not Visible In the Toolbar

The Device Manager icon is available in the toolbar if you are running with Java 1.6. If you are using Java 1.5, the Device Manager runs, but its icon cannot be displayed in the system toolbar. To stop the device manager you must kill its process from a console window. For example, use the ps command to find the device manager process (if you are not familiar with ps, type man ps at the command prompt).

ps -aef | grep device-managerscreenshot of ps command output

Observe the process IDs (the above output has been shortened to fit) and use them as arguments for the kill command. For example:

kill 18219 18221
Adding Devices With the Device Wizard (Mac OS)

If you use an external device, the SDK doesn’t automatically know about it. Use the Add Device wizard to supply an IP address, and the Device Manager will search that location for all instances of Java. In the Device Selector, click the Add a Device icon to launch the wizard.

Device Selector

Step 1: Set the device location. Enter the IP address of the device and click Next.

Step 2: Device detection. Choose a verbosity level. You can change the verbosity dynamically.

Device detection starts. Notifications are written to the text pane. Progress messages are black, successful detection is green, and failure is red.

The Device Manager performs the same task as the Add Device Wizard. To launch the device manager, click the Device Manager icon in toolbar icon to launch the Device Address Manager.Enter an IP address and click Add. Addresses are tested as they are added. Progress messages are black, successful detection is green, and failure is red.

Related Information
ing HTM