Preverifying Class Files
The next step is to preverify the class files. The bin directory of
the Java ME Platform SDK includes the preverify utility. The syntax for the
preverify command is as follows:preverify files | directories
Some of the options are as follows:
Specify the directories or JAR files (given
as a semicolon-delimited list) from which classes are loaded.
Specify the target directory
for the output classes. This directory must exist before preverifying. If this option is
not used, the preverifier places the classes in a directory called output.
Following the example for compiling, use the following command to verify the compiled class
files. As before, newlines are added for clarity.
preverify -classpath ..\..\lib\cldcapi10.jar;..\..\lib\midpapi20.jar -d classes tmpclasses
As a result of this command, preverified class files are placed in the
classes directory. If your application uses WMA, MMAPI, or other versions of CLDC
or MIDP, be sure to include the relevant .jar files in the classpath.