×
Namespaces

Variants
Actions
Revision as of 09:10, 24 July 2013 by hamishwillee (Talk | contribs)

How to add multiple midlets in manifest file

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: dinanath.d (08 Dec 2009)
Last edited: hamishwillee (24 Jul 2013)

Contents

Overview

You may require more MIDlet(s) to your package and have the same on a device that supports MIDP. A typical Java Archive file (JAR) contains class files and resources like images and application data. To do this you will have to create a JAR file.

A basic components of MIDlet Suite consists of Java Application Descriptor (JAD) file the Java Archive file (JAR).

Minimum fields in MIDlet suite's manifest

The manifest must contain at least the following fields:

MIDlet-Name @
MIDlet-Version @
MIDlet-Vendor @
MIDlet-# (where # is the MIDlet number, one for each MIDlet) X
MicroEdition-Profile X
MicroEdition-Configuration X 

@ Value must exactly match those present in the JAD file.

X Value must exactly match those present in the JAD file if signing by Nokia Store is required.

Minimum fields in JAD file

MIDlet-Name @
MIDlet-Version @
MIDlet-Vendor @
MIDlet-# (where # is the MIDlet number, one for each MIDlet) X
MicroEdition-Profile X
MicroEdition-Configuration X
MIDlet-Jar-URL 
MIDlet-Jar-Size


@ Value must exactly match those present in the manifest.

X Value must exactly match those present in the manifest if signing by Nokia Store is required.

Sample manifest file for 2 midlets

MIDlet-Name: Games Demo
MIDlet-Version: 1.0
MIDlet-Vendor: GamesComp.
MIDlet-1: Demo Game1, , Simple.GameMidlet1
MIDlet-2: Demo Game2, , Advance.GameMidlet2
MicroEdition-Profile: MIDP-2.0
MicroEdition-Configuration: CLDC-1.1

Sample Java Descriptor file for 2 midlets

MIDlet-Name: Games Demo
MIDlet-Version: 1.0
MIDlet-Vendor: GamesComp
MIDlet-Description: Game Demostration
MIDlet-Jar-URL: GameDemo.jar
MIDlet-Jar-Size: 2548
MIDlet-1: Demo Game1, , Simple.GameMidlet1
MIDlet-2: Demo Game2, , Advance.GameMidlet2

Create the jar file

jar cvmf MANIFEST.MF GameDemo.jar Simple.GameMidlet1.class Advance.GameMidlet2.class
95 page views in the last 30 days.
×