Creating a New CDC Application for Windows CE (Using the CrEme VM)

Requirements needed

Software or Resource Version Required
NetBeans IDE with Java ME Version 6.5 or
version 6.1
Java Development Kit (JDK) Version 6 or
version 5
Sun Java Toolkit for CDC 1.0

Creating an Application

  1. Choose File > New Project (Ctrl+Shift+N) from the main window.
  2. Under Categories, select Mobility. Under Projects, select CDC Application. Click Next.Creating a new cdc project in NetBeans IDE
  3. In the Name and Location Page, name the project cremeapp. Click Next.
  4. In the Select Platform Page, choose pJSCP V4.10. Click Finish.
    Selecting the CrEme VM in the IDEs new project wizard
  5. In the Project window, right-click on the Source Packages node of your project and choose New > JFrame form. Click Finish. The NetBeans GUI Builder (Matisse) displays the new form.Note: Make sure that the first fragment of code in the main() method is as is shown below when you are going to run the application in CrEme default emulator. This make sure that Swing is loaded.
    try {
        UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());} catch(Exception exception) {
        System.out.println("Error loading L&F: " + exception);
  6. Use the Project Matisse GUI builder to create your application. You can use the Project Matisse GUI Builder in the same way you use it for regular J2SE development.Note that if there is an exception that crashes the emulator, the emulator prints it to the standard output window and waits for a key press. You cannot, however, send the keypress from the IDE. You must instead kill the VM from the Process Explorer.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s