Syntax:
emulator [arguments]
In order to get commands supported by given device run:
emulator.exe -Xdevice:<device name> -Xquery
Generic list of arguments is:
-version Display version information about the emulator
-help Display list of valid arguments
-classpath, -cp The class path for the VM
-D<name>=<value> Set a system property
-Xdebug Use a remote debugger
-Xrunjdwp:[transport=<transport>,address=<address>,server=<y/n>
suspend=<y/n>]
Debugging options
-Xdevice:<device> Select a device skin for the emulator
-Xdomain:<domain_name>
Set the MIDlet suite's security domain
-Xquery Print device information
-Xjam[:install=<JAD file url> | force | list | storageNames |
run=[<storage name> | <storage number>] |
remove=[<storage name> | <storage number> | all]]
Java Application Manager and support
for Over The Air provisioning (OTA)
-Xautotest:<JAD file url>
Run in autotest mode
-Xdescriptor:<JAD file name>
The JAD file to be executed
。。。我想很多人运行的时候都遇到这个问题。。
我查了一天才查到在preferences 里 J2ME device managemnt 选择设备 edit ,launch command Template里边,把 [%target%|%target%] 去掉就可以了。应该是3.0里取消这个参数了。
另外 存档的问题,我发现如果程序中如果使用了rms,模拟器运行的时候会把上次生成的db文件删除。。。。很无语,至今也没找到有没有可配置的参数。。。暂时只能用2.5.2测试rms。