Creating your first MIDlet
To create a MIDlet, you first need to create an MTJ MIDlet Project. As
a prerequisite, you need to have the following stored on your computer
and configured for MTJ before the MIDlet creation:
- Mobile SDK for the Device Platform
You can also change the mobile SDK later.
The following three are necessary if you
plan to sign the application with a trusted CA and deploy the application
to an actual device:
- The deployment tool
- The key tool and the signing tool
- A certificate from a trusted CA
The following steps display the work
flow for creating a MIDlet.
- Create a
MIDlet project.
Make sure the desired mobile SDK is stored on your computer before
starting the New Project wizard. For your first MIDlet, you can use the
Hello_World_MIDP.template, which is offered by the New Project wizard.
- Edit the JAD file
using the Application Descriptor Editor.
- Manage the resources.
If your application includes images or sound files, include them in
your project, under the res folder.
- Build the project.
This process creates the deployed folder, which contains the JAR and
JAD file..
- Debug the MIDlet.
You can use Eclipse's built in Debug process, which can be accessed
from the menu bar, by selecting Run ->
Debug.
- Run the MIDlet
to test it.
In the menu bar, select Run ->
Run to test the application in an emulator.
The application is now ready.
The following steps are necessary only if
you plan to sign and deploy the application.
- Sign the application.
This includes also the definition of the MIDlet's permissions.
- Deploy
the application to a mobile device or file storage.