---
title: "用sun公司的NetBeans开发J2ME程序"
author: "misswolf"
date: "2005-05-02T21:10:00Z"
tags: []
slug: "sun-netbeans-j2me"
draft: false
lastmod: "2005-05-02T21:10:00Z"
id: 270452
url: "https://misswolf.iteye.com/blog/270452"
---

本文开始将讲述如何配置和使用NetBeans4.0开发环境来创建配置和开发J2ME项目，开始J2ME开发之旅。由于这是创建的第一个J2ME程序，按照程序开发的惯例，这头把交椅自然又是非"Hello World"莫属了。HelloWorld虽然功能简单，但是麻雀虽小，五脏俱全，通过这个小程序的开发，完全能够达到让读者熟悉J2ME程序开发一般流程的目的

第一步：准备开发工具

IDE：NetBeans 4.0 (从Sun 公司公下载,也可以从[http://www.netbeans.org](http://www.netbeans.org)下载)

MIDP开发插件（NetBeans的官方网有MIDP的开发包下载)

我们开始下载吧:

下面是我下载

![](http://blog.csdn.net/images/blog_csdn_net/woundedsoul/90810/r_1.JPG)

![](http://blog.csdn.net/images/blog_csdn_net/woundedsoul/90810/r_2.JPG)

填写必要的信息

![](http://blog.csdn.net/images/blog_csdn_net/woundedsoul/90810/r_3.JPG)

![](http://blog.csdn.net/images/blog_csdn_net/woundedsoul/90810/r_4.JPG)

选译插件上面那一个就是NetBeans本身的IDE下面的是移动开发包

第二步：安装（下载的MIDP是一个安装程序一路Next就OK -\_-#真方便）

![](http://blog.csdn.net/images/blog_csdn_net/woundedsoul/90810/r_NetBeans3.JPG)

下一步吧^\_^

![](http://blog.csdn.net/images/blog_csdn_net/woundedsoul/90810/r_NetBeans4.JPG)

选择NetBeans的安装目录

![](http://blog.csdn.net/images/blog_csdn_net/woundedsoul/90810/r_NetBeans5.JPG)

安装完后呵呵在安装前NetBeans项目能新建有

![](http://blog.csdn.net/images/blog_csdn_net/woundedsoul/90810/r_NetBeans1.JPG)

先来写一个HelloWord测试程序吧

新建一个移动的工程

![](http://blog.csdn.net/images/blog_csdn_net/woundedsoul/90810/r_NetBeans8.JPG)编译运行后如图:

![](http://blog.csdn.net/images/blog_csdn_net/woundedsoul/90810/r_NetBeans7.JPG)

呵呵到些结束吧！