There are two wizards for creating MTJ projects:
Java ME Project
The Java ME Project must be used for all Java ME profiles other than
MIDP profile. The Java ME Projects are extensions of an Eclipse Java project.
Additional resources include the mtj.project file, which is a control
file that points to the SDK libraries. This file must not be edited.
Note: If you are creating this type of a project and you select
to use the template that is provided (see step 9 below), confirm that
the SDK you are using supports Java ME Personal Profile.
Midlet Project
The MTJ Midlet Project creates resources that are required to define
a MIDlet. The project includes a xxx.jad file (xxx is the project name).
This file is the Java Application Descriptor file defined in the MIDP
specification.
Note: When creating an MTJ project, you also define the mobile runtime for the project. To do this, you need to have the desired mobile SDK installed on your computer.
To create a new MTJ project
In the menu bar, select
File -> New -> Project.
New Project wizard opens with the Select a wizard window.
Expand Mobile Tools for the Java Platform and choose one of the following:
If you want to create a Java ME project using
a profile other than the MIDP, select Java
ME Project and click Next.
The MTJ Project window opens.
If you want to create a MIDlet Project, select
Midlet Project and click Next.
The MTJ Midlet Project Creation window opens.
Click Next.
The Java Settings window opens.
Click Next.
The Templates window opens.
MTJ provides one example template, the Hello_World_MIDP,
for MIDP projects and one example template, the Hello_World_PPRO,
which is for Personal Profile projects.
Note: Hello_World_PPRO template
is for Personal Profile and requires that the SDK with Personal Profile
support is defined for the project.
If you want to create a functioning project from template, check the
box next to Use template to create Java
ME project and select the template from the list.
The system creates a functioning project into your workspace, with
the chosen template's code in the source folder.
Click Finish.
You have now created an MTJ project. The project folder is displayed
in the Eclipse's Package Explorer view.
In Package Explorer view, expand the project folder.
The project folder displays the contents of the project. These include
the chosen runtime library, the optional separate source folder, the project
folder, the optional MIDP package. the res folder for resources and the
JAD file.
![]()
Mobile Tools for the Java Platform
Mobile SDKs
Mobile runtimes
![]()
Managing mobile SDKs
Creating your first MIDlet
Editing the JAD file