Compilation

The next step in the actual development cycle after creating your program is to compile the program source. Before you attempt compilation, make sure your shell environment's command path list includes the path to the directory that contains the J2ME utilities on your system.

The general form of the compilation line is

$ javac –d <tmpclasses dir> -bootclasspath <midpapi.zip location>  \
<location of Java source file(s)>

The –d directive tells the compiler the directory in which to write the unverified compiled classes. The -bootclasspath directive indicates the location of the midpapi.zip file, which comes with Java Software's J2ME Wireless Toolkit and contains all the MIDP classes you need to write J2ME applications. Development ...

Get Wireless J2ME™ Platform Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.