@echo off rem This batch file builds and preverifies the code for the demos. rem it then packages them in a JAR file appropriately. echo *** Creating directories *** echo *** (this stage may produce already exist errors. Ignore them). *** mkdir ..\tmpclasses mkdir ..\classes echo *** Compiling source files *** javac -bootclasspath ..\..\..\lib\midpapi.zip;%CLASSPATH_FOR_J2MEWTK% -d ..\tmpclasses -classpath ..\tmpclasses ..\src\*.java echo *** Preverifying class files *** rem WARNING: When running under windows 9x the JAR may be incomplete rem due to a bug in windows 98. Simply place a pause statement between rem the preverify and JAR stages and wait 5 seconds before continuing rem the build. ..\..\..\bin\preverify -classpath ..\..\..\lib\midpapi.zip;%CLASSPATH_FOR_J2MEWTK%;..\tmpclasses -d ..\classes ..\tmpclasses echo *** Jaring preverified class files *** jar cmf MANIFEST.MF crypto.jar -C ..\classes . echo *** Jaring resource files *** jar umf MANIFEST.MF crypto.jar -C ..\res . echo *** Jaring cryptographic classes from www.bouncycastle.org *** rem jar umf MANIFEST.MF crypto.jar -C %XKML_HOME%\classes . echo *** Don't forget to update the JAR file size in the JAD file ***