NetBeans Java ME CDC Development Quick Start Guide
NetBeans Java ME CDC Development Quick Start Guide
NetBeans Java ME CDC Development Quick Start Guide
Contents
Requirements Supported CDC Emulator Platforms Creating a CDC Application with Personal Basis Profile Creating a CDC Application with Personal Profile See Also
Requirements
To complete this tutorial, you need the following software and resources: Software or Resource Version Required
NetBeans IDE with Java ME Version 7.2 Java Development Kit (JDK) Version 6 or version 7
2/20/13
P l a t f o r mM i c r oE d i t i o nS D K3 . 0 . 5for the Java Platform and D e f a u l t C d c P b p P h o n e 1as the Device. Leave the Profile settings as P B P 1 . 1like
shown in the following picture.
5. Click Finish. The IDE creates the new application and opens the main class form. 6. In the Source view, find g . d r a w S t r i n g ( " H e l l o ,W o r l d ! " ,8 0 ,5 0 ) ;and add the word J a v aso that it reads H e l l o ,J a v aW o r l d !
7. To build the project, choose Run > Build Project from the main toolbar. 8. Choose Run > Run Project from the main toolbar to run your project. The project launches in the emulator and and displays the modified "Hello World!" message.
netbeans.org/kb/docs/javame/cdc-quickstart.html?print=yes
2/5
2/20/13
You can also debug the project and create tests for CDC projects using the JUnit framework.
2/20/13
4. Click Finish. The IDE creates a new application and opens the main class form in the GUI Builder, as shown in the following figure. Click on Source to see the source code for the applet.
Note: The generated code is based on the profile. Here the main class is derived from j a v a . a w t . F r a m e .
Note: Make sure you only use AWT components in your form. Since all the Nokia Series 80 devices support the Personal Profile, only AWT widgets are available. For more information on using the IDE's GUI Builder, see the Java GUI Applications Learning Trail. When you are done, right-click the project in the Projects window and choose Run from the popup
netbeans.org/kb/docs/javame/cdc-quickstart.html?print=yes 4/5
2/20/13
You can now run the device in the emulator. You can also debug the project, and create and debug tests using the JUnit framework. Send Feedb ack on This Tutorial
See Also
More information about developing mobile applications using the IDE can be found at the following locations: NetBeans CDC Emulator Platform Setup Guide NetBeans Java ME Applications Learning Trail
netbeans.org/kb/docs/javame/cdc-quickstart.html?print=yes
5/5