Creating a Java ME project

In this section, you will create a new Java ME project in the Workbench.

  1. Inside Eclipse select the menu item File > New > Project.... to open the New Project wizard
  2. Select Java ME Project from the Java ME group then click Next to start the Open the new Java ME project wizard New Java ME Project wizard.


    New Project wizard

  3. You will be presented with the New Java ME Project wizard Page:

    New Project wizard page

  4. You must indicate a name and location for the project. In addition, you may alter the name that will used for the jad file, generated during the "Create Package" process.This setting can also be changed later using the Project Properties.

  5. Add one or more configurations. Configurations will be used for preprocessing, compiling, running, debugging and packaging the Java ME Project. If necessary, you can change this setting later using the Project Properties or Application Descriptor Editor. For more information about configurations, refer Configuration Document

    Note: You now can either click Finish to create the project, or click Next to set up project content settings on the Java ME Project Content page.

  6. The Java ME Project Content page is used to configure contents of the project (MIDlet name, MIDlet version, MIDlet vendor, etc.).

    New Project wizard content page

    Note: You now can either click Finish to create the project, or click Next to set up project source settings on the Java Settings page.

  7. The Java Settings page is used to adjust source settings, related projects and libraries, etc. These are standard Eclipse settings. If your project requires an external library (e.g. kXML, etc.), add the JAR file(s) to the list on the "Libraries" tab. MTJ will automatically manage these JAR files along with your compiled class files.


    Java Settings wizard page

  8. To finish the Java ME Project creation wizard, simply click on the Finish button and the new project will be created in your workspace.


If you have completed the above steps, the Package Explorer view will now contain the Java ME project we just created, and the Application Descriptor editor will be already opened in the Overview page.

The new Java ME project