Java Reference
In-Depth Information
The CLDC reference implementation ships without a Java compiler, so an additional Java
compiler like the one contained in the Java Development Kit for the Java 2 Standard Edition is
needed to actually build KVM programs. Also, the process for compiling J2ME applications is
somewhat different from desktop development. For example, it is necessary to specify the
compiler parameter -bootclasspath , in order to compile the application with the J2ME
libraries instead of the standard desktop environment. These additional steps are described in
detail in the section " Developing a Simple Application . "
Sun's MIDP Reference Implementation v1.0.3
In addition to the CLDC RI, Sun offers an implementation of the MIDP as well. Similar to the
CLDC RI, the MIDP implementation is distributed under the Sun Community Source License and
ships without a Java compiler.
The MIDP Development Kit includes the complete source for its supported target platforms—
Win32, Linux, and Solaris—available in separate files which are available for download. The
MIDP SDK includes several example applications, ranging from simple demos showing how to
use common MIDP widgets to complete games, such as the TitlePuzzle game (see Figure 1.1 ) .
Moreover, it includes a description of how the included development tools are used.
Figure 1.1. The MIDP Emulator on the Windows32 platform, running a Sokoban
game.
 
Search WWH ::




Custom Search