You are on page 1of 7

Introduction to J2ME

Aimed with Limited hardware resources. Aimed at less than128 KB of RAM and processor less powerful.

J2ME

consists of Profiles. Each profile defined for particular device. Consists of minimum number of class libraries particular device. JVM is used in J2SE and J2EE where as in J2ME use KVM. K stands for Kilobyte.

1.

2.

The following profiles are The Foundation Profile -- A profile for next generation consumer electronic devices The Mobile Information Device Profile (MIDP) -- A profile for mobile information devices, such as cellular phones and two-way pagers, and PDAs

Profiles do only specification. To implement the profile we use configuration. Some of the configurations are as follows

Connected Device Configuration (CDC) An implementation of the Foundation Profile for next-generation, consumer electronic and embedded devices 2. Connected Limited Device Configuration (CLDC) An implementation of MIDP for small, resourceconstrained devices such as Palm OS devices.
1.

Each profile uses different set of Java class libraries. Cant use both profile as same. They have different set of class libraries. Running sample application: set cldc_classpath = c:\cldc\bin\api\classes;. set bin = %bin%;c:\cldc\bin cd \cldc\bin\samples\classes.

Compiling a CLDC application is a two step process. First you must run them through the standard J2SE compiler, specifying the CLDC class libraries instead of the standard J2SE class libraries. The resulting class file with the preverify program to turn it into a Java application ready for the KVM.

Thank you...

You might also like