Typical requirements
CLDC is designed for devices that have limited processing power, memory, and graphical capability. Devices typically have the following features: * 16- bit or 32-bit CPU with a clock speed of 16 MHz or higher * At least 160 KB ROM allocated for the CLDC libraries and virtual machine * At least 8 KB total RAM available to the Java platform * Low power consumption, often operating on battery power * Connectivity to some kind of network, often with a wireless, intermittent connection and limited bandwidthNoteworthy limitations
Compared to the Java SE environment, several APIs are absent entirely, and some APIs are altered such that code requires explicit changes to support CLDC. In particular, certain changes are not just the absence of classes or interfaces, but actually change the signatures of existing classes in the base class library. An example of this is the absence of theSerializable
interface, which does not appear in the base class library due to restrictions on reflection usage. All java.lang.*
classes which normally implement Serializable
do not, therefore, implement this tagging interface.
Other examples of limitations depend on the version being used, as some features were re-introduced with version 1.1 of CLDC.
CLDC 1.0 and 1.1
* TheSerializable
interface is not supported.
* Parts of the reflection capabilities of the Java standard edition:
** The Object.finalize()
method.
* Limited error handling. Non-runtime errors are handled by terminating the application or resetting the device.
* No user-defined class loaders
* No thread groups or daemon threads.
Profiles
A profile is a set of APIs that support devices with different capabilities and resources within the CLDC framework to provide a complete Java application environment. There are specific profiles for devices ranging from vending machines to set-top boxes, with the mobile phone profile MIDP being the most prevalent.Summary of CLDC-Based Profiles http://developers.sun.com/mobility/midp/ttips/cldc/Mobile Information Device Profile
The Mobile Information Device Profile is a profile designed for cell phones. There are two versions of MIDP available, specified in JSR 37JSR 37, MIDP 1.0 http://www.jcp.org/en/jsr/detail?id=37 (MIDP 1.0) and JSR 118JSR 118, MIDP 2.0 http://www.jcp.org/en/jsr/detail?id=118 (MIDP 2.0). Both versions provide an LCD oriented GUI API, with MIDP 2.0 including a basic 2D gaming API. Applications written to use this profile are called MIDlets. Many cell phones come with a MIDP implementation, and it is a popular platform for downloadable cell phone games.pocketgamer.co.uk mobile platforms feature http://www.pocketgamer.co.uk/r/Mobile/feature.asp?c=1266Information Module Profile
The Information Module Profile is specified in JSR 195JSR 195, Information Module Profile http://www.jcp.org/en/jsr/detail?id=195 and is designed for vending machines, network cards, routers, telephone boxes and other systems with either simple or no display and some form of limited two way network access. Only APIs for application creation, storage, and network access are defined. These are a subset of the javax.microedition.io, rms and midlet packages in MIDP. Siemens Mobile andDoJa Profile
The DoJa profile was designed for the i-mode mobile phone by NTT DoCoMo.Digital Set Top Box Profile
The Digital Set Top Box profile, specified in JSR 242,JSR 242, Digital Set Top Box Profile http://www.jcp.org/en/jsr/detail?id=242 is designed for the cable market. Also referred to as OnRamp, this profile is based on a subset of the OpenCable Application Platform (''OCAP''), which defines a set of APIs for the development of applications for set-top boxes and similar devices. The profile consists of subsets from the CDC Personal Basis Profile including support for AWT, Xlet, file access, and network APIs, as well as several media-related interfaces from OCAP. The whole profile encompassed 31 Java packages and approximately 1500 APIs.Optional Packages
The PDA Optional Packages are specified inGeneral APIs
;java.util
collection library. This package contains the collection classes like Vector and Hashtable. It also contains calendar and date class.
See also
* Connected Device Configuration or ''CDC'', another framework for building Java ME applicationsReferences
{{ReflistExternal links