- Java in your Computer. Download JDK from http://java.sun.com/javase/downloads/index.jsp
- Netbeans Mobility Pack or Latest Version Form http://www.netbeans.org/downloads/
Step 1:
- Choose File > New Project (Ctrl-Shift-N). Under Categories, select Mobility. Under Projects, select MIDP Application and click Next.
- Enter Project Name field . Choose the Diretory you want to save the project.
- Check the Set as Main Project checkbox and remove the check from the Create Hello MIDlet checkbox. Click Next.
- Select the Sun Java Wireless Toolkit 2.52 for CLDC as the Emulator Platform and use the remaining defaults. Click Finish.
- Now you created a project .The project folder contains all of your sources and project metadata, such as the project Ant script.
- Right-click the defaultPackage node in the Explorer window and choose New > MIDlet
- Enter
HelloMIDlet
as the MIDlet name. Click Finish. TheHelloMIDlet.java
file is created and the source code is displayed in the IDE's Editor window. - Now add the code following code in the existing code.
- Right Click the Project Folder and Choose the Run. Or Press F6.
- If you done any changes , Use F9 to complie and F6 run.