Editing the JAD file

MTJ project creation wizard creates a JAD file for MIDlets. The JAD file contains information about the MIDlets that are included in the JAR file, such as deployment and user defined properties. Edit the JAD file before deployment to a mobile device.

To edit the JAD file

To edit the Jad file, you need to have an MTJ project created. MTJ creates the JAD file automatically with default MTJ information, and therefore you must edit the properties to match those of your organization.

  1. In the Package Explorer view, expand the project for which you want to edit the JAD file and double-click the project's source JAD file.
    The Application Descriptor Editor opens in the Editor view.

  2. In the Required tab, enter the required MIDlet suite properties. These are:

  3. In the Midlets tab, define the MIDlets that make up the MIDlet suite.
    You can add or remove midlets by clicking Add or Remove. The columns are:

Note: On this tab, you must have one entry for each MIDlet in your MIDlet suite. If you selected the Add to Application Descriptor option when you created the MIDlet class, an entry is automatically made for you. If not, you must use the Add button to add an entry for your MIDlet.

  1. In the Optional tab, you can specify the MIDlet suite properties, such as the optional MIDlet permissions. These properties are defined in the Java ME specification, but they are not required. The properties are:

Note: For more information on MIDlet permissions, refer to Sun Developer Network.

  1. In the OTA tab, you can confirm Over the Air (OTA) deployment properties.
    These properties include:

 

  1. In the User Defined tab, you can add or remove user-defined key-value pairs by clicking Add or Remove.
    The key string is used to retrieve the value and the value is associated with the key.

  2. In the menu bar, select File -> Save.


Mobile Tools for the Java Platform

Java ME platform


Managing applications


JAD file