我的配置是eclipse3.7.0+eclipseme1.7.9+java me sdk3.0,在run-run configurations时(如图)
在Executable中默认选择Midlet,运行时无模拟器弹出,控制台出现如下字段
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
-Xdescriptor:<JAD file name>
The JAD file to be executed
-Xjam[:install=<JAD file url> | force | list | storageNames |
run=[<storage name> | <storage number>][,<MIDlet class name>] |
remove=[<storage name> | <storage number> | all] |
transient=<JAD file url>]
Java Application Manager and support
for Over The Air provisioning (OTA)
-Xquery Print device information
-Xautotest:<JAD file url>
Run in autotest mode
在Executable中选择over the air ,正常运行,但模拟器右下方会多出一个菜单(如图)
控制台也会报错:
Installing suite from: http://localhost:2106/ota/CheckColor/CheckColor.jad
****warning****
****Untrusted user classes must never be put
****on the system class path
****warning****
9250 - ERROR - JSR258 - 3 - Can't create MediaObject: media file (screen.image_bg.png) is not found
9906 - ERROR - JSR258 - 3 - Can't find theme element (feature=activeScreen, role=background)
9906 - ERROR - JSR258 - 3 - Can't find theme element (feature=inputMode, role=backgroundImage)