Home Start Back Next End
  
51
Packaging
is
needed before the application is ready for testing and deployment. It has
several
steps.
The
first
is
creating
Manifest
file.
This
Manifest
describes
the
content
of
Java Archive (JAR) file of the application.
In order to create Manifest file, developer should write this:
MIDlet-Name
:
DateTimeApp
MIDlet-Version
:
1.0.0
MIDlet-Vendor
:
Vikram
Goyal
Save 
this 
file 
as  Manifest.mf 
in  the  C :\WTK22\article\output 
folder. 
(Note  the
newline  after  the 
last  attribute,  MIDlet-Vendor
It 
must  be  present;  otherwise  this
attribute will not be recognized.)
To  create  JAR 
file, 
move 
into  C:\WTK22\article \output  directory  and 
issue  the
following command:
C:\WTK22\article \output>jar cvfm DateTimeApp.jar Manifest.mf .\com
This
will
create
the
DateTimeApp.jar
file
in
the
current
(C:\WTK22\article\output)
folder.
The next step is to create Java Application Descriptor (JAD) file. JAD points to the
location of
the MIDlet
it describes so
that a J2ME device can
install
it.
To create JAD,
this should be written:
MIDlet-1: DateTimeApp,
,
com.j2me.part1.DateTimeApp
MIDlet-Name:
DateTimeApp
Word to PDF Converter | Word to HTML Converter