So far we have seen how CLDC fits into the bigger picture of J2ME and have set up our environment for development. In this section, we delve a little deeper into the CLDC API. The CLDC API is really just a subset of the J2SE java.lang
, java.io
, and java.util
packages plus a new package -- javax.microedition
. We will look at each of these packages in turn, highlighting the more important classes within each.
Although each of these classes exists in J2SE, the CLDC implementation of each class does not necessarily implement all methods supported by J2SE. You should check the CLDC API documentation to be sure which methods are supported. A copy of the documentation is in the j2me_cldc/docs directory of your J2ME CLDC installation. It is available in both PDF and javadoc formats.