09-21-2012 11:44 AM
I get the error mentioned in the heading when I run the following on a JAR file in a Windows terminal:
$ preverify myfile.jar
The JAR file is an external MIDP JAR file developed in NetBeans. This worked fine on Windows 7 (32 bit), but now I get the error after reinstalling everything in Windows 7 (64 bit) running in VirtualBox on a Mac OS X host.
The JAR file that gets the error is the same file as before.
I have the same 32-bit java versions (1.6.0_32) in both installations (and no 64-bit Java installed), and the same BlackBerry WebWorks SDK 184.108.40.206.
JAVA_HOME and PATH are the same (apart from the (x86) in C:\Program Files (x86)).
PATH includes following:
C:\Program Files (x86)\Java\jdk1.6.0_32\bin;
C:\Program Files (x86)\Java\jre6\bin;
C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 220.127.116.11\bin
The only difference I can find is that before I had
and this is now
and the version of preverify.exe is newer. But copying the old preverify.exe and using that gives the same error.
09-22-2012 08:12 AM
Solved it myself.
I missed a "classpath" parameter off the preverify command, and the parameter needed to be updated from "Program Files" to "Program Files (x86)"