Packaging the MIDlet
The Application packager will open. This tool will help you to build a Jar file, with an associated Jad file, which will define your MIDlet and enable MIDP devices to run it.
- The first tab of the Application Packager is the MIDlets tab. All of the compiled MIDlets on the classpath will appear.
- Next choose the Tutorial2.RMSToDo MIDlet in the list and select the Include in Jar checkbox.
- A Description for the MIDlet may be entered in the Description field; the default RMSToDo is fine for this test.
- Choose the dependencies tab of the packager. This tab shows all the MIDlets selected for the Jar file and the classes which these MIDlets depend on. Double check that Tutorial2.RMSToDo is the only MIDlet listed.
- The next tab, Suite Properties, lets the user specify other properties of the MIDlet, including the MIDlet suite name and version. For this test these properties can be left as is.
- The Resources tab is an area where resources such as images can be added to the Jar file. In this example, no resources need to be added, so do nothing on this page.
- The final tab is the build tab. The settings on this page should be left as they are. Press the Build Jar File button to build the Jar.
The Application builder will preverify the classes for the Jar file. After preverification, the Application Packager will create the Jar and Jad files. They can be found in the Jar/Zip/JAD Files group of the IDE. They are now ready to be loaded onto a MIDP device.
Congratulations! You have completed this tutorial and learned how to use Simplicity for Mobile Devices to create a MIDlet which uses RMS.
| Data Representations, Inc. http://www.datarepresentations.com support@datarepresentations.com sales@datarepresentations.com |