Sunteți pe pagina 1din 2

J2ME

J2ME Architecture:
j2me architecture consistes of layers located above native os called CLDC forms
runtime environment of small computing devices.
j2me architecture comprises three software layers:
first: Configuration layer includes JVM, directly intercat with native os. it al
so handles interaction between the profile and the jvm.
Second: Profile layer consistes of minimum set of applciation programming interf
aces(APIs) for small computing device.
Third: Mobile Information Device Profile(MIDP) contains java apis for user netwo
rk connections, persistence storage and
the user interface. also has access to CLDC libraries and MIDP libraries.
Minimum requirement to run j2me application:
96X54 pixel display that can handle bitmapped gaphics.
Two way for users to input information, such as keypad, keyboard, or touch scree
n.
At least 128 kilbytest(KB) of non volatile memory is necessary to run Mobile Inf
ormation Device(MID)
8KB of non volatile memeory must be available.
Device must support two way network connectivity.
Minimal Native OS requirement.
must implement exception handling, process interrupts, be able to tun JVM,
provide schedule capabilities.
All user input to the os must be forwarded to the jvm.

Runtime environment:
MIDlet is a j2me application designed to operate on an MIDP small computing devi
ce.
MIDlet is defined with at least a single class that is derived from javax.microe
dition.midlet.MIDlet abstract class.
MIDlets are commonly bundled in MIDLet suite considered as group and must be ins
talled and uninstalled as a group.
IMPLEMENTATION
MIDlet suite must be contained within a production package called Java Archieve(
JAR) file.
these files include MIDlet classes, graphics images(If req by midelt) and manife
st file.
Manifest File:
Contains list of attribytes and related definitions that r used by application m
anager to install the files contained in jar file.
Nine attribs defined in the manifest file.
3 of these attribs are optional.
Six attribs must be include in suite.
MIDlet-Name name of midlet suite.
MIDlet-Version midlet version number
MIDlet-Vendor name of the vendor who supplied the midlet.
MIDlet-n attrib per midlet. values are midlet name, optional icon, and mi
dlet class name.
MicroEdition-Profile Identifies the j2me profile that is necessary to run the mi
dlet.
Microdedition-configuration identifies the j2me configuration that is necesa
ary to run the midlet.
MIDlet-Icon Icon associated with MIDlet, must be in PNG image format (optional).
MIDlet-Description Description of Midlet (Optional).
MIDlet-Info-URL URL containing more inforamation about the midlet.

S-ar putea să vă placă și