Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 17

E IO

2 M E
D
IT

J
O
R
IC
M
2
A
V
JA

Done By:
Hiba Osama
WHAT IS J2ME???
 J2ME is a family of specifications that defines various downsized
versions .
 Downsized version is used to program consumer electronic device ranging
from cell phones to PDA and smart phones.
 Electronic devices diverse in :
Form .
Function .
 But they all have limited :
Memory .
Processing power .
Hence the software of these devices should be reliable.
MORE PRECISE DEFINITION
 J2ME is a collection of specifications that define a set of a
platforms, each of which is suitable for a subset of the
total collection of consumer devices that fall within Its
scope.

 The environment of the particular device is defined by


configuration and profile or profiles.

But what is configuration and what is profile??!!!


WHAT IS CONFIGURATION ?
 A configuration is a specification that defines the software
environment for a range of devices defined by a set of characteristics
that the specification relies on, usually such things as:

The types and amount of memory available.


The processor type and speed.
The type of network connection available to the device.

 A configuration is supposed to represent the minimum platform for


its target device and is not permitted to define optional features.
CONFIGURATION TYPES:
 J2ME currently defines two types of
configuration:

Connected Limited Device Configuration (CLDC).

Connected Device Configuration (CDC).


CONFIGURATION TYPES CLDC
 Connected Limited Device Configuration (CLDC):

The Connected Limited Device Configuration provides


the basis for running Java on devices that have
insufficient resources .
CLDC is aimed at the low end of the consumer
electronics range. A typical CLDC platform is a
cell phone or PDA with around 512 KB of available
memory.
CONFIGURATION TYPES CDC
 Connected Device Configuration (CDC):
CDC addresses the needs of devices that lie between
those addressed by CLDC and the full desktop systems
running J2SE.
These devices have more memory (typically 2MB or
more) and more capable processors, and they can,
therefore, support a much more complete Java software
environment.
CDC might be found on high-end PDAs and in smart
phones, web telephones , and etc
WHAT IS PROFILE?

 The profiles complements a configuration by adding


additional classes that provide features appropriate
to a particular type of device or to a specific vertical
market segment.
 Both J2ME configurations have one or more
associated profiles, some of which may themselves
rely on other profiles.
PROFILE SAMPLES:
 Mobile Information Device Profile (MIDP):

This profile adds networking, user interface components, and local


storage to CLDC.
Provides a relatively simple user interface and basic networking
based on HTTP 1.1 .
It is the basis for Wireless Java .
MIDP Applications are called MIDlets.
 Game Profile:
The Game Profile provides a platform for writing games software
on CDC devices.
VIRTUAL MACHINE:
 CLDC Virtual Machine KVM (Kilobyte Virtual Machine):
a reduced functionality VM that has a very small memory
footprint and incorporates a garbage collector that is
optimized for a memory-constrained environment .

 CDC Virtual Machine CVM (Connected Virtual Machine):


implements the full range of J2SE VM features as required
by the CDC specification.
 
CONFIGURATION AND PROFILE:

 The configuration and profile or profiles that are


appropriate for a device depend both on the nature of
its hardware and the market to which it is targeted.
MINIMUM REQUIREMENTS FOR MIDP:
 Memory:
MIDP includes quite a lot of software that is not part of
the core Java platform and therefore requires more memory .
The MIDP specification requires at least 128 KB of RAM be
available to store the MIDP implementation itself, over and
above whatever is needed by CLDC.
There must be at least 32 KB available for the Java heap.
MIDP devices must also supply at least 8 KB of nonvolatile
memory to be used as persistent storage
CONT.
 Display:
The specification requires that the screen should be at least
96 pixels wide and 54 pixels high and that each pixel be
(approximately) square.

screen must support at least two colors, and many cell phones
are capable of no more than this.

Some new mobiles and typically PDA have screens with 160
pixels in each direction and support as many as 65,536 different
colors.
CONT.
 Input Device:
The minimum assumption made by the MIDP specification
is that the device has the equivalent of a keypad that allows
the user to type the numbers 0 through 9 , together with the
equivalent of arrow keys and a select button.
In the new mobiles there are buttons that may be
programmed to act as directional arrows .
The representation of the input device is reflected in the
APIs that handle the user interface
CONT.
 Connectivity:
The device must support HTTP 1.1
CONCLUSION:
 J2ME
 Configuration & profile.
 Two Types of configuration.
 Profile requirements.
!! !
OU
Y
N K
HA
T

Any Questions???

You might also like