Creating new MTJ projects

###OPEN ISSUE <15>###

There are two wizards for creating MTJ projects:

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

  1. In the menu bar, select File -> New -> Project.
    New Project wizard opens with the Select a wizard window.


     

  2. Expand Mobile Tools for the Java Platform and choose one of the following:

  1. Define project details:
    1. In the Project name field, enter a name for the project.
    2. In the Project contents field, if you do no want to create the project in the default directory, clear the Use default box and browse for a new location.
    3. Click Next.
      The MTJ Java ME Library Addition window opens.

  2. To select the mobile runtime for the platform, in the Select Runtime Platform field select one of the following:
  1. Click Next.
    The Java Settings window opens.


     

  2. To define the Java settings:
    1. In the Source tab, the system displays the default source folder and output folder. You can edit these by selecting Add Folder, Remove or Browse.
    2. If you want to add your own JAR files, libraries or class folders, select the Libraries tab and add the desired components.
    3. If you are creating a MIDlet, click Next.
      The Configure Midlet Suite window opens.
      If you are not creating a MIDlet, click Next, select the template if necessary and continue from Step 10 in this step list.
  1. In the Configure Midlet Suite window, define the following properties for the JAD file:
Note:You can edit the JAD file at a later point in more detail, using the Application Descriptor Editor.

  1. Click Next.
    The Templates window opens.

  2. MTJ provides one example template, the Hello_World_MIDP.
    If you want to create a functioning Java ME 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 Java ME project into your workspace, with the chosen template's MIDP code in the source folder.

  3. Click Finish.
    You have now created an MTJ project. The project folder is displayed in the Eclipse's Package Explorer view.
     

  4. 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 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


Wizards

JAD file