There are two wizards for creating MTJ projects: MTJ Midlet Project and MTJ Project wizards.
The MTJ Midlet Project creates resources that are required to define a MIDlet. The MTJ Project must be used for any other Java ME profile choice.
The MTJ 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. That file must not be edited.
The MTJ Midlet Project also 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 a MTJ project, you also define the mobile runtime for the project. To do this, you need to have the desired mobile SDK stored 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 MTJ and:
If you want to create a MIDlet Project, select
MTJ Midlet Project and click Next.
The MTJ Midlet Project Creation window opens.
OR
If you want to create a Java ME project using any other profile,
select MTJ Project and click Next.
The MTJ Project window opens.
In the Project name field, enter a name for the project.
In the Project contents field, if you do no want to create the project in the default directory, uncheck the Use default box and browse for a new location.
Click Next.
The MTJ JavaME Library Addition window opens.### OPEN ISSUE <15>###
To select the Java runtime for the platform, in the Select Runtime Platform field:
If you want to create a new runtime platform,
select New Runtime Platform.
The Add Runtime Platform window opens.
Note: In the Add Runtime
Platform window, you can import and activate mobile SDKs to MTJ as the
device platforms. The active device platform is represented by the ticked
box next to the name of the SDK.
OR
If you want to select an existing runtime
platform, choose the platform from the drop-down menu in the Add Runtime
Platform window
Note: When creating a project, you can select smaller set
of APIs that the targeted devices are supporting. By selecting smallest
possible set of needed APIs, the number of suitable devices is bigger.
Although the project has the default device, the project's definitions
can match to several devices.
Click Next.
The Java Settings window opens.
To define the Java settings:
Note: Only the projects from your current workspace are listed.
Note:You can edit the JAD file at a later point in more detail, using the Application Descriptor Editor.
Click Finish.
You have now created a MTJ project. The project folder is displayed
in the 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 and the JAD file.
Tip: You can import existing Java ME projects into the MTJ workspace, and convert them into MTJ projects by right-clicking the desired project in the Package Explorer and selecting Convert to MTJ Project.### OPEN ISSUE <15>###
![]()
Mobile Tools for Java Platform
Mobile SDKs
Mobile runtimes
![]()
Managing mobile SDKs
Creating your first MIDlet
Editing the JAD file