Editing the JAD file

The JAD file that contains the information about the contents of the JAR file can be edited in MTJ. In MTJ, 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.

Note: We recommend you to provide the edited JAD file with the mobile tool applications, since increasingly more and more mobile devices demand the JAD file to be provided with JAR file applications. Any attempts to send an invalid JAD file to a phone will result in a JAR download error.

To edit the JAD file

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

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

  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, suc has 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 user defined or remove 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 Java Platform
Java ME projects


Managing applications


JAD file