Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0, CLDC

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

Searching the WURFL Device Database

Finding Files in the Multiple User Environment

Profiling Applications

Monitoring Network Traffic

Security and MIDlet Signing

Command Line Reference

Launch the SDK

Run the Device Manager

Manage Device Addresses (device-address)

Emulator Command Line Options

Build a Project from the Command Line

Packaging a MIDLet Suite (JAR and JAD)

Command Line Security Features

Change the Default Protection Domain

Sign MIDlet Suites (jadtool)

Manage Certificates (MEKeyTool)

Generate Stubs (wscompile)

Running the Payment Console From the Command Line

Virtual Machine Memory Profiler (Java Heap Memory Observe Tool)

Run the Java Heap Memory Observe Tool

Heap Snapshot Elements

Running WMA Tool

smsreceive

cbsreceive

mmsreceive

smssend

cbssend

mmssend

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 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


Emulator Command Line Options

You can launch the emulator independent of the GUI using bin/emulator. The syntax is as follows:

emulator options

The syntax for the emulator command is as follows:

The general options are as follows:

emulator also supports MIDlet Options, and Debugging and Tracing Options.

MIDlet Options

Options for running MIDlets in the emulator are as follows:

The Xjam argument runs an application remotely using the Application Management Software (AMS) to run OTA provisioning. If no application is specified with the argument, the graphical AMS is run.

This example includes OTA installation:

emulator -Xjam:install=http://www.myserver.com/apps/MyApp.jad -Xdevice:DefaultCldcMsaPhone2

The above command returns the ID of the installed application. Once you obtain the ID you can run it with: emulator=Xjam:run=ID

See also Emulator Command Line Options and Debugging and Tracing Options.

Debugging and Tracing Options

You can use the following options with the emulator for debugging and tracing CLDC projects.

See also MIDlet Options and Emulator Command Line Options.