转自http://blog.csdn.net/smallearth/article/details/7605778
最新的Java ME platform SDK 3.0,但是跟eclipseme 1.7.9 配合有问题,在RUN的时候,会报下面错误:
Syntax:
emulator [arguments]
In order to get commands supported by given device run:
emulator.exe -Xdevice:
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
-Xdebug Use a remote debugger
-Xrunjdwp:[transport=
suspend=
Debugging options
-Xdevice:
-Xdomain:
Set the MIDlet suite's security domain
-Xdescriptor:
The JAD file to be executed
-Xjam[:install=
run=[
remove=[
transient=
Java Application Manager and support
for Over The Air provisioning (OTA)
-Xquery Print device information
-Xautotest:
Run in autotest mode
很明显,启动模拟器的参数不对,可以在下面位置可以修改这些参数:
Windows > Preferences > J2ME > Device Manager > 选中一个设备定义,点Edit > 修改lanuch command template:
把原来的改成:
%executable% [%debugPort%|-Xdebug -Xrunjdwp:transport=dt_socket,suspend=y,server=y,address=%debugPort%] [%classpath%|-classpath "%classpath%"] -Xdevice:%device% [%jadfile%|"-Xdescriptor:%jadfile%"] [%securityDomain%|-Xdomain:%securityDomain%] %userSpecifiedArguments%
就OK了