Download Java ME SDK Help - Oracle Documentation
Transcript
DECEMBER 2009 JAVA ME SDK HELP ■ ■ list. List all the applications installed on the device and exit. The list is written to standard output before the emulator exits. ■ storageNames. List all applications installed on the device. The list is written to standard output before the emulator exits. Each line contains one storage name in numerical order. The list contains only the name so the order is important. For example the first storage name must be storage number 1. -Xjam:run=[<storage-name> | <storage-number>] Run a previously installed application. The application is specified by its valid storage name or storage number. ■ -Xjam:remove=[<storage-name> | <storage-number> | all] Remove a previously installed application. The application is identified by its valid storage name or storage number. If all is supplied, all previously installed applications are removed. ■ transient=jad-file-url If specified, transient is an alias for installing, running, and removing the application with the specified JAD file. This example illustrates 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” on page 133 and “Debugging and Tracing Options” on page 135. Debugging and Tracing Options You can use the following options with the emulator for debugging and tracing CLDC projects. You can use the following options with the emulator for debugging and tracing CLDC and CDC projects. ■ -Xdebug Enable runtime debugging. The -Xrunjdwp option must be called to support -Xdebug. ■ -Xrunjdwp:debug-settings Start a Java debug wire protocol session, as specified by a list of comma-separated debug settings. Both -Xrunjdwp and -Xdebug must be called. Command Line Reference 135