Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Java ME (J2ME) Developer Guide
Previous Page Home Next Page

Creating a MIDlet project

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

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

    New Project wizard

  3. You will be presented with the New MIDlet 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 MIDlet 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
  6. Choose to enable or not the preprocessing support.

    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 MIDlet 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 MIDlet project we just created, and the Application Descriptor editor will be already opened in the Overview page.

The new MIDlet project

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire