Preverification

The next step after compilation is to preverify the .class files you just compiled. To do so, issue the following command:

$ preverify -classpath "../../lib/midpapi.zip;tmpclasses" -d classes \
tmpclasses
$

If you're using the J2ME Wireless Toolkit, you must separate the class path elements with semicolons, and you must quote them if you're using a Unix shell in order to avoid the shell interpreting the semicolon. The class path elements represent the directories from which classes are to be loaded. The class path element separator—a semicolon in this case—is platform specific.

The -d argument indicates the destination directory to which the preverified output classes produced by this command are to be written. Finally, the ...

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.