Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Revision as of 05:58, 1 August 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Nokia SDK 2.0 开发环境搭建

From Wiki
Jump to: navigation, search
WP Metro Icon Chinese.png
Article Metadata

兼容于
文章
Amazing110 在 20 Jun 2012 创建
最后由 hamishwillee 在 01 Aug 2013 编辑

Contents

Introduction

在你使用Nokia SDK 2.0 for Java开发你的第一个MIDlet之前,你需要配置你的开发环境。 请按照如下的顺序配置:

Nokia2.0 Env configure order.png


注意:如果你已经安装最新版本的Nokia SDK 2.0 for Java (beta), 那么你已经不需要手动安装Eclipse 和MTJ插件了, 因为在Nokia SDK 2.0 for Java (beta) 的安装包中已经包含了集成了MTJ的Eclipse,你已可以安装后,仅仅做适当配置就可以开始你的程序开发之旅了。

开发工具下载及安装

1. JDK 6 Update 27 bit32
由于update27以后的JDK版本,存在IMEI注册的bug,有可能导致模拟器不能正常运行,所以建议使用JDK 6 Update 27 bit32.

点击这里进入下载页面

2. IDE
对于IDE我们是推荐使用Eclipse 或则 Netbeans。 对于Elipse,由于JDK我们选择了32位版本,那么Eclipse也选择32位的版本进行安装。

进入Eclipse Indigo下面页面

安装完成后,我们还需要安装MTJ插件以进行Javame的开发。 打开刚才安装完成的Elipse, "Install new software" -> "Add", 输入下面的最新的MTJ的地址.

http://download.eclipse.org/mtj/updates/1.1.2/stable/

Mtj 1.1.2 plugin install.png

3. Nokia SDK for Java
Nokia SDK for Java 包含了开发Java me程序的相关库,以及编译,运行,部署Midlets的环境。 你可以 [ http://www.developer.nokia.com/Develop/Series_40/ 点击这里下载SDK]


4. Nokia Ovi Suite 下载Nokia suite, 以便你可以轻松的部署你的Midlets到Nokia 设备,当然这不是必须的。

点击下载Nokia Ovi Suite



配置Eclipse

1. 打开Eclipse.

2. 选择 Window > Preferences.

3. 选择Java ME > Device Management.

4. 点击 Manual Install.

5. 点击 “浏览” , 选择你的NOkia SDK for Java的安装目录。

Eclipse Nokia Device Install configure.png

6. 点击 Finish.

7. Debug配置 进入 Java > Debug , 配置如下参数: 取消前面的选中钩: “Suspend execution on uncaught exceptions”

“Suspend execution on compilation errors ”  
“Suspend for breakpoints during evaluations ” 

“ Open popup when suspended on exception” 。

设置“Debugger timeout (ms)” 为 "30000", 同时设置 “Launch timeout (ms)” 为 "20000".

Eclipse debug related configure.png


开发第一个Midlet

后续....


相关链接

This page was last modified on 1 August 2013, at 05:58.
407 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×