刚换的系统,环境是:
JDK 1.6
Java_ME_platform_SDK_3.0
ME插件 eclipseme.feature_1.7.9
IDE eclipse 3.4
配置好以后(感觉已经配置好了),敲一段测试代码试试,但是出了问题,点击“运行”按钮,就是不出来模拟器 ..然后console 出来下面一大堆的 东西..
Syntax:
emulator [arguments]In order to get commands supported by given device run:
emulator.exe -Xdevice: -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= Set a system property
-Xdebug Use a remote debugger
-Xrunjdwp:[transport=
,address=
,server=
suspend=]
Debugging options
-Xdevice: Select a device skin for the emulator
-Xdomain:
Set the MIDlet suite’s security domain
-Xquery Print device information
-Xjam[:install= | force | list | storageNames |
run=[ | ] |
remove=[ | | all]]
Java Application Manager and support
for Over The Air provisioning (OTA)
-Xautotest:
Run in autotest mode
-Xdescriptor:
The JAD file to be executed
压根就不出来模拟器…
以前的系统装了WTK 2.5.2 ,运行很正常,一点事都没有
新的 SDK 3.0(sun_java_me_sdk-3_0-win ) 那就有问题了,网上查资料
安装好SDK3.0以后WTK2.5.2无法安装(安装出错),那只能使用SDK3.0,网上又说SDK3.0只能使用MTJ而没法使用eclipseme
网上有说用SDK3.0+eclipseme的解决办法:
eclipse->window->preference->java->debug
suspend Execution的三个勾都要去掉。
debugger timerout 设置为 300000
但是我试过之后,还是不行
因为eclipseme 1.7.9 不支持JAVAME SDK 3.0, 你得要把eclipseme 1.7.9升级到MTJ (Mobile tools for Java)
最后在eclipse官网上下到专门为手机开发的eclipse-pulsar(集成了大量补丁),所以放弃以上两种组合使用pulsar
然后我用 RUN 模拟器是 DefaultCldcJtwiPhone1