---
title: "让EclipseME支持JavaME platform SDK 3.0"
author: "smallearth"
date: "2012-05-27T00:19:00Z"
tags: []
slug: "eclipseme-javame-platform-sdk-3-0"
draft: false
lastmod: "2013-11-30T20:10:45Z"
id: 1983332
url: "https://smallearth.iteye.com/blog/1983332"
---

由于开发需要，下了SUN出的最新的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: -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=  
&lt;address&gt;,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  
&lt;/address&gt;  
很明显，启动模拟器的参数不对，可以在下面位置可以修改这些参数：

Windows &gt; Preferences &gt; J2ME &gt; Device Manager &gt; 选中一个设备定义，点Edit　&gt; 修改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%

就可以了

哈哈 我外甥女![](http://my.csdn.net/uploads/201205/27/1338049227_9976.jpg)