TOC PREV NEXT INDEX



Packaging the MIDlet


  1. Right-click on the RMSToDo.class file. Choose 'Build Jar' from the pop-up menu.

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. It will also create a PRC file which will run on Palm OS Platform devices.

  1. The first tab of the Application Packager is the MIDlets tab. All of the compiled MIDlets on the classpath will appear, with your MIDlet, Tutorial2.RMSToDo, at the top.
  2. A Description for the MIDlet may be entered in the Description field; the default RMSToDo is fine for this test.
  3. 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.
  4. 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.
  5. 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.
  6. The next tab is the jar tab. The settings on this page should be left as they are.
  7. The final tab is the PRC tab. On this page, you can choose to build a PRC which will run on Tungsten devices, or a PRC which will run on Palm OS Platform devices running Palm OS 3.5 or 4.0. Press the Build button at the bottom of the window to build the Jar and PRC.

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. The Application builder will also create a PRC file which can be loaded onto a Palm OS Platform device.

Congratulations! You have completed this tutorial and learned how to use Simplicity for Palm OS Platform to create a MIDlet which uses RMS.


Data Representations, Inc.
http://www.datarepresentations.com
support@datarepresentations.com
sales@datarepresentations.com
TOC PREV NEXT INDEX