09-25-2009 02:28 AM
I tried preverify methods but I did not succeed. Could you please tell me a way to preverift jars on blackberry? I am using LWUIT.jar to design my blackberry. When I compile it, I come across with preverification errors. Could you please tell me a way or a simple way to fix preverification error issue? Thank you in advance.
Solved! Go to Solution.
09-25-2009 06:59 AM
Check this thread.
09-25-2009 08:40 AM
"D:\Program Files\Research In Motion\BlackBerry JDE 4.6.0\bin\preverify" -classpath "D:\Program Files\Research In Motion\BlackBerry JDE 4.6.0\lib\net_rim_api.jar" kxml2-2.3.0.jar
Of course, you have to fill it with your stuff.
Make sure jar.exe is in the PATH as well
03-31-2011 06:41 AM
well it's weird , I still have this eviscerated error :
is there something faulty in this log :
ajout : example/ (entrï¿½e = 0) (sortie = 0) (0% stockï¿½)
ajout : example/Utils.class (entrï¿½e = 504) (sortie = 287) (43% compresses)
[Output directory for verified classes: output]
[Loaded java/lang/Object] from [c:/Eclipse//plugins/net.rim.ejde.componentpack6.0
[Loaded java/lang/Class] from [c:/Eclipse//plugins/net.rim.ejde.componentpack6.0
[Loaded java/lang/String] from [c:/Eclipse//plugins/net.rim.ejde.componentpack6.0
[Loaded java/lang/Throwable] from [c:/Eclipse//plugins/net.rim.ejde.componentpack6.0
[Loaded example/Utils] from [tmp/examplelib.jar]
Executing command [jar -cvfM "output/examplelib.jar" -C tmp3282 .]
02-02-2012 10:06 AM
I tried to fix it the way you mentioned me but i still get an error. In CMD i get the following error:
"JAR file creation failed with error -1"
The preverified classes if any are in tmp19600. See jar log of errors in output\jarlog.txt"
When i open \output\jarlog.txt i see the following message:
"Error: No such file or directory
jar -cfm "output\WS.jar" tmp19436\\META-INF\MANIFEST.MF -C tmp19436 . "
I opened the folder tmp19600 and i can see the classes (just plain classes not a .jar file) there but they have some scrambled code inside and when i'm trying to import them to the package i can't see or use them in Eclipse.
Can you please help me with this issue if you know how? Help will be much appriciated.
Thank you infront,
08-27-2012 01:39 PM