Creating a project from scratch

In order to create a new Java ME project, use the New Project Wizard and select Java ME Project from within the Mobile Tools for Java 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 available device 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. In addition, you may alter the default location for the project's JAD file on this page. The JAD file specified in this field must be created relative to the project's root folder. You may later change the JAD file later using a rename or move refactoring within the Package Explorer.

screenshot

The final pane provides you with the opportunity 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.

screenshot

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

screenshot