Creating new MTJ projects

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 stored 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 MTJ 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 JavaME Library Addition window opens.### OPEN ISSUE <15>###

  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. To define the source folders on build path, select the Source tab, and click Add Folder. In the New Source Folder window, add a new source folder and click OK.
    2. To add required projects on the build path, select the Projects tab, and click Add. In the Required Project Selection window, select the projects to be added and click OK.

Note: Only the projects from your current workspace are listed.

  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. 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 package in the source folder as a functional MIDP application.

  3. Click Finish.
    You have now created an MTJ project. The project folder is displayed in the 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.

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 the Java Platform

Mobile SDKs

Mobile runtimes


Managing mobile SDKs
Creating your first MIDlet
Editing the JAD file


Wizards

JAD file