Options for general management of Java output

To display a summary of the command line options in the SDK, enter emulator -help or SDK -help. The command displays a list of the options that work with the executable in the command window. The -help option must be the only option in a command.

You can use the following options to perform general work with MIDlets:

Option

Description

Use with

-classpath <directories and JAR files>

Specifies the directories and JAR files to be searched for classes; the classpath may include both library and application class directories and JAR packages.

emulator.exe

-Xdescriptor:<JAD file>

Runs an application using the specified JAD file.

emulator.exe

-Xdebug

Runs the MIDlet in debugging mode.

emulator.exe

-Xdevice:<device name>

Run an application on the SDK specified by the device name.

emulator.exe

-Xheapsize:<heapsize>

Specifies the heapsize (in bytes) available for MIDlets. The value may be specified in kilobytes by appending k to the number, or in megabytes by appending M to the number. The valid value range is 0 to 10 megabytes. If the specified value is greater than the valid range (more than 10 megabytes), the heapsize is set to the maximum value.

emulator.exe

-Xquery

Prints information about the SDK. This option is not valid when used with the -Xjam option.

emulator.exe

-Xrunjdwp:address=<port>

Specifies the TCP/IP port number between the emulator KVM and the debug proxy.

emulator.exe

-Xrunjdwp:transport= dt_socket

Specifies the transport mechanism used to communicate with the debugger. Only dt_socket is supported.

emulator.exe

-Xrunjdwp:server=Y

Starts the debug agent as a server. The debugger connects to the specified port.Method trace call

emulator.exe

-Xrunjdwp:suspend=Y

Starts the debug agent as a server. The debugger connects to the specified port.

emulator.exe

-Xrunjdwp:suspend=Y

Suspends the VM immediately after establishing a connection to the debugger. Only the value Y is supported.

emulator.exe

-Xsecurity_domain:<domain name>

Specifies the security domain for the MIDlet. Domain name can have one of the following values:

  • Trusted

  • Untrusted

  • Maximum

  • Minimum

emulator.exe