×
Namespaces

Variants
Actions
(Difference between revisions)

MIDlet JAR Manifest essentials

From Nokia Developer Wiki
Jump to: navigation, search
kopasz0183 (Talk | contribs)
(Overview)
hamishwillee (Talk | contribs)
m (Hamishwillee - Add ArticleNeedsUpdate template)
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Series 40 3rd Edition]]==Overview==
+
[[Category:Series 40 3rd Edition (initial release)]][[Category:Java ME]][[Category:Deployment/Installation]][[Category:Essential Idioms]][[Category:General Programming]]
The manifest provides information about the contents of the JAR file.MIDP implementations MUST implement handling of lines longer than 72 bytes as defined in the manifest specification. An attribute MUST not appear more than once within the manifest. If an attribute is duplicated the effect is unspecified. Manifest attributes are passed to the MIDlet when requested using the MIDlet.getAppProperty method, unless the attribute is duplicated in the application descriptor
+
{{ArticleNeedsUpdate|timestamp=20130327010829|user=[[User:Hamishwillee|<br />----]]|This article should be merged with articles containing similar material: [[JAD]], [[JAR]], [[Java Application Descriptor (JAD) essentials]], [[MIDlet JAR Manifest essentials]]}}
 +
==Overview==
 +
{{Abstract|The manifest provides information about the contents of the JAR file.}} MIDP implementations MUST implement handling of lines longer than 72 bytes as defined in the manifest specification. An attribute MUST not appear more than once within the manifest. If an attribute is duplicated the effect is unspecified. Manifest attributes are passed to the MIDlet when requested using the {{Icode|MIDlet.getAppProperty}} method, unless the attribute is duplicated in the application descriptor
 +
 
 +
{{ArticleMetaData <!-- v1.2 -->
 +
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->
 +
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 +
|devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') -->
 +
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 +
|platform= Series 40 3rd Edition (initial release)
 +
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
 +
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing= <!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
 +
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 +
|translated-by= <!-- [[User:XXXX]] -->
 +
|translated-from-title= <!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by= <!-- After re-review: [[User:username]] -->
 +
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 +
|update-by= <!-- After significant update: [[User:username]]-->
 +
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 +
|creationdate= 20070525
 +
|author= [[User:Adilb]]
 +
}}
 +
 +
{{Warning|MIDlet attributes must be the same in both JAR manifest and the JAD! Otherwise the application will not work after being signed. <br />
 +
For more information on signing and Java verfied see [http://javaverified.com/Docs_and_FAQs#244 this FAQ]. In particular topics "Signing Java ME applications" and "Why doesn't my signed midlet work?"}}
  
 
==Must Have Attributes==
 
==Must Have Attributes==
MIDlet-Name :The name of the MIDlet suite<br/>
+
* MIDlet-Name :The name of the MIDlet suite
MIDlet-Version :The version number of the MIDlet suite.<br/>
+
* MIDlet-Version :The version number of the MIDlet suite.
MIDlet-Vendor :The name of vendor that provides/creates the MIDlet suite.
+
* MIDlet-Vendor :The name of vendor that provides/creates the MIDlet suite.
<br/>
+
* MIDlet-<n> for each MIDlet :The name, icon, and class of the nth MIDlet in the JAR file separated by a comma. The lowest value of <n> MUST be 1 and consecutive ordinals MUST be used. The first missing entry terminates the list. Any additional entries are ignored. Leading and trailing spaces in name, icon and class are ignored.
MIDlet-<n> for each MIDlet :The name, icon, and class of the nth MIDlet in the JAR file separated by a comma. The lowest value of <n> MUST be 1 and consecutive ordinals MUST be used. The first missing entry terminates the list. Any additional entries are ignored. Leading and trailing spaces in name, icon and class are ignored. <br/>
+
* MicroEdition-Profile :The MIDprofile veing used eg:MIDP1.0
MicroEdition-Profile :The MIDprofile veing used eg:MIDP1.0<br/>
+
* MicroEdition-Configuration :The Configuration being used eg:CLDC1.0
MicroEdition-Configuration :The Configuration being used eg:CLDC1.0<br/><br/>
+
  
 
==May contain Attributes==
 
==May contain Attributes==
MIDlet-Description :Usually a short discription about the midlet<br/>
+
* MIDlet-Description :Usually a short discription about the MIDlet
MIDlet-Icon :Its the absolute name of a PNG file within the JAR used to represent the MIDlet suite. It is the icon that the AMS(Application Management Software) displays .
+
* MIDlet-Icon :Its the absolute name of a PNG file within the JAR used to represent the MIDlet suite. It is the icon that the AMS(Application Management Software) displays.
<br/>
+
* MIDlet-Info-URL :A URL for information describing the MIDlet suite.
MIDlet-Info-URL :A URL for information describing the MIDlet suite.<br/>
+
* MIDlet-Data-Size :The data storage size that can be used eg:1024
MIDlet-Data-Size :The data storage size that can be used eg:1024<br/>
+
* MIDlet-Permissions :Zero or more permissions that are critical to the function of the MIDlet suite.  
MIDlet-Permissions :Zero or more permissions that are critical to the function of the MIDlet suite. <br/>
+
* MIDlet-Permissions-Opt :Zero or more permissions that are non-critical to the function of the MIDlet suite.  
MIDlet-Permissions-Opt :Zero or more permissions that are non-critical to the function of the MIDlet suite. <br/>
+
* MIDlet-Push-<n> :Register a MIDlet to handle inbound connections.
MIDlet-Push-<n> :Register a MIDlet to handle inbound connections.<br/>
+
* MIDlet-Install-Notify : The URL to be notified after installation of MIDlet
MIDlet-Install-Notify : The URL to be notified after installation of MIDlet<br/>
+
* MIDlet-Delete-Notify : The URL to be notified after deletion of MIDlet
MIDlet-Delete-Notify : The URL to be notified after deletion of MIDlet<br/>
+
* MIDlet-Delete-Confirm
MIDlet-Delete-Confirm<br/>
+
 
Any application-specific attributes that do not begin with MIDlet- or MicroEdition- which can be read later in code<br/>  
 
Any application-specific attributes that do not begin with MIDlet- or MicroEdition- which can be read later in code<br/>  
  
Line 28: Line 54:
  
 
* [[Jad & manifest entries/attributes]]
 
* [[Jad & manifest entries/attributes]]
* http://www.j2medev.com/api/midp/javax/microedition/midlet/package-summary.html#package_description
+
* http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/midlet/package-summary.html
 
+
[[Category:Java]][[Category:Java ME]]
+

Revision as of 04:08, 27 March 2013

Needs-update.pngThis article needs to be updated: If you found this article useful, please fix the problems below then delete the {{ArticleNeedsUpdate}} template from the article to remove this warning.

Reasons: hamishwillee (27 Mar 2013)
This article should be merged with articles containing similar material: JAD, JAR, Java Application Descriptor (JAD) essentials, MIDlet JAR Manifest essentials

Contents

Overview

The manifest provides information about the contents of the JAR file. MIDP implementations MUST implement handling of lines longer than 72 bytes as defined in the manifest specification. An attribute MUST not appear more than once within the manifest. If an attribute is duplicated the effect is unspecified. Manifest attributes are passed to the MIDlet when requested using the MIDlet.getAppProperty method, unless the attribute is duplicated in the application descriptor

Article Metadata
Compatibility
Platform(s): Series 40 3rd Edition (initial release)
Series 40
Series 40 3rd Edition (initial release)
Article
Created: adilb (25 May 2007)
Last edited: hamishwillee (27 Mar 2013)

Warning.pngWarning: MIDlet attributes must be the same in both JAR manifest and the JAD! Otherwise the application will not work after being signed.
For more information on signing and Java verfied see this FAQ. In particular topics "Signing Java ME applications" and "Why doesn't my signed midlet work?"

Must Have Attributes

  • MIDlet-Name :The name of the MIDlet suite
  • MIDlet-Version :The version number of the MIDlet suite.
  • MIDlet-Vendor :The name of vendor that provides/creates the MIDlet suite.
  • MIDlet-<n> for each MIDlet :The name, icon, and class of the nth MIDlet in the JAR file separated by a comma. The lowest value of <n> MUST be 1 and consecutive ordinals MUST be used. The first missing entry terminates the list. Any additional entries are ignored. Leading and trailing spaces in name, icon and class are ignored.
  • MicroEdition-Profile :The MIDprofile veing used eg:MIDP1.0
  • MicroEdition-Configuration :The Configuration being used eg:CLDC1.0

May contain Attributes

  • MIDlet-Description :Usually a short discription about the MIDlet
  • MIDlet-Icon :Its the absolute name of a PNG file within the JAR used to represent the MIDlet suite. It is the icon that the AMS(Application Management Software) displays.
  • MIDlet-Info-URL :A URL for information describing the MIDlet suite.
  • MIDlet-Data-Size :The data storage size that can be used eg:1024
  • MIDlet-Permissions :Zero or more permissions that are critical to the function of the MIDlet suite.
  • MIDlet-Permissions-Opt :Zero or more permissions that are non-critical to the function of the MIDlet suite.
  • MIDlet-Push-<n> :Register a MIDlet to handle inbound connections.
  • MIDlet-Install-Notify : The URL to be notified after installation of MIDlet
  • MIDlet-Delete-Notify : The URL to be notified after deletion of MIDlet
  • MIDlet-Delete-Confirm

Any application-specific attributes that do not begin with MIDlet- or MicroEdition- which can be read later in code

See also

134 page views in the last 30 days.
×