Viewing and Editing Project Properties
Running Projects in the Emulator
Searching the WURFL Device Database
Finding Files in the Multiple User Environment
CLDC Emulation on a Windows Mobile Device
Installing CLDC Emulation on a Windows Mobile Emulator
Managing Device Addresses (device-address)
Running the Emulator From the Command Line
Building a Project from the Command Line
Packaging a MIDLet Suite (JAR and JAD)
Command Line Security Features
Changing the Emulator's Default Protection Domain
Signing MIDlet Suites (jadtool.exe)
Managing Certificates (MEKeyTool)
Running the Payment Console From the Command Line
Virtual Machine Memory Profiler (Java Heap Memory Observe Tool)
Running the Java Heap Memory Observe Tool
JSR 82: Bluetooth and OBEX Support
JSR 135: Mobile Media API Support
JSR 177: Smart Card Security (SATSA)
JSRs 184, 226, and 239: Graphics Capabilities
JSR 205: Wireless Messaging API (WMA) Support
JSR 211: Content Handler API (CHAPI)
JSR 238: Mobile Internationalization API (MIA)
You can use the following options with the emulator for debugging and tracing both CLDC and CDC projects.
Enable runtime debugging. The -Xrunjdwp option must be called to support -Xdebug.
Start a Java debug wire protocol session, as specified by a list of comma-separated debug settings. Both -Xrunjdwp and -Xdebug must be called.
Valid debug settings include the following:
transport=transport-mechanism - Transport mechanism used to communicate with the debugger. The only transport mechanism supported is dt_socket.
address=host:port - Transport address for the debugger connection. If host is omitted, localhost is assumed to be the host machine.
server={y|n} - Starts the debug agent as a server. The debugger must connect to the port specified. The possible values are y and n. Currently, only y is supported (the emulator must act as a server).
suspend={y|n} - The possible values are y and n.
When suspend is set to n, the application starts immediately and the debugger can be attached at any time during its run.
When suspend is set to y, the application does not start until a debugger attaches to the debugging port and sends a resume command. This means that an application can be debugged from the very beginning.
Display trace output, as specified by a list of comma-separated options, as follows:
gc - Trace garbage collection
class - Trace class loading
all - Use all tracing options
This example shows debugging:
emulator.exe -Xdevice:DefaultCldcMsaPhone2 -Xdebug -Xrunjdwp:transport=dt_socket, suspend=y,server=y,address=51307 -Xdescriptor:C:\Java_ME_platfrom_SDK_3.0\appps\Games\dist\Games.jadSee also MIDlet Options, CDC Options, and Running the Emulator From the Command Line.