Creating your first MIDlet

To create a MIDlet, you first need to create an MTJ MIDlet Project. You can then either write the code in MTJ or import the code from file system or CVS. As a prerequisite, you need to have the following stored on your computer and configured for MTJ before the MIDlet creation: The following steps display the work flow for creating a MIDlet.
  1. Create a MIDlet project.
    Make sure the desired mobile SDK is stored on your computer before starting the New Project wizard.
  2. Create the Java Class for your MIDlet.
    You can use the Create New Class wizard.
  3. Provide the code for the MIDlet.
  4. Build the project.
    This process creates the deployed folder, which contains the JAR and JAD file.
  5. Edit the JAD file using the Application Descriptor Editor.
  6. Debug the MIDlet.
    You can use Eclipse's built in Debug process, which can be accessed from the menu bar, by selecting Run -> Debug.
  7. Run the MIDlet to test it.
    In the menu bar, select Run -> Run to test the application in an emulator.
  8. Sign the application.
    This includes also the definition of the MIDlet's permissions.
  9. Deploy the application to a mobile device or file storage.