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

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


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


Opening a Serial Port

In application code, you can use Connector.open(“comm:COM1“) to open a port on the device.


On Windows, you can open a serial port such as COM1 or COM2.

Mac OS

Mac hardware does not have serial ports. Java ME SDK emulates a serial port named COM1 for each default device. When your application connects to COM1, you can emulate interaction with the serial port by reading from and writing to the serial file:

/Users/uname/Library/Application Support/javame-sdk/3.0/work/device/serial

The serial file is a symbolic link to a pseudo terminal that is virtually connected to the device under COM1. When the emulator encounters the call to open the port the serial file is instantiated. When the connection is closed the serial file is removed.