javame 入门的一个小问题

 转自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:<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

很明显,启动模拟器的参数不对,可以在下面位置可以修改这些参数: 

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了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值