Creating a new J2ME MIDlet Project

Creating a project from scratch

In order to create a new EclipseME project, use the New Project Wizard and select J2ME Midlet Suite from within the J2ME item.

screenshot

The first wizard pane is standard for almost all Eclipse projects. Here, you provide the name of the project, and the location for the project contents.

screenshot

In the second pane, you choose which of the installed platform definitions you will use for compiling the project and for running and debugging. If necessary, you can change this setting later using the Project Properties.

screenshot

The final pane provides you with the opportunity to adjust source settings, related projects and libraries, etc. These settings rarely need to be altered.

screenshot

Once you have completed the above steps, you will have a project that looks like this in your workspace:

screenshot

Converting an existing project to an EclipseME project

If you have an existing Java project that you want to convert into an EclipseME project, you can do this by selecting Convert to J2ME Midlet Suite from the project pop-up menu.

screenshot

When you do this, the EclipseME plug-in will automatically prompt you for the appropriate profile selection, and will then make the required changes to your project. If the J2SE libraries can be identified, they will be removed from the project build path and replaced with the J2ME libraries. If the plug-in does not remove the J2SE libraries, you will need to do this yourself.

Application Descriptor (JAD) Editor

After creating a new MIDlet Suite Project you may find that you need to alter the suite's properties. MIDlet Suite properties are controlled by the editting the Java Application Descriptor.