Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 13
Registered: ‎09-22-2009
My Device: Not Specified
Accepted Solution

how to preverify a jar on blackberry



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.





Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: how to preverify a jar on blackberry

Check this thread.



Use Search. "Accept Solution" If the problem is resolved.
Posts: 37
Registered: ‎09-23-2009
My Device: Not Specified

Re: how to preverify a jar on blackberry

Posts: 173
Registered: ‎06-11-2009
My Device: Not Specified

Re: how to preverify a jar on blackberry

In fact, there is just one line

"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

New Developer
New Developer
Posts: 151
Registered: ‎01-05-2010
My Device: dev alpha c (bb10)
My Carrier: www.rzr.online.fr

Re: how to preverify a jar on blackberry

well it's weird , I still have this eviscerated error :



is there something faulty in this log :


"C:\Eclipse\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\bin\/preverify.exe" -verbose -classpath c:/Eclipse//plugins/net.rim.ejde.componentpack6.0.0_6.0.0.30//components/lib/net_rim_api.jar tmp/examplelib.jar
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.0_6.0.0.30//components/lib/net_rim_api.jar]
[Loaded java/lang/Class] from [c:/Eclipse//plugins/net.rim.ejde.componentpack6.0.0_6.0.0.30//components/lib/net_rim_api.jar]
[Loaded java/lang/String] from [c:/Eclipse//plugins/net.rim.ejde.componentpack6.0.0_6.0.0.30//components/lib/net_rim_api.jar]
[Loaded java/lang/Throwable] from [c:/Eclipse//plugins/net.rim.ejde.componentpack6.0.0_6.0.0.30//components/lib/net_rim_api.jar]
[Loaded example/Utils] from [tmp/examplelib.jar]
Executing command [jar -cvfM "output/examplelib.jar" -C tmp3282 .]


Posts: 18
Registered: ‎11-10-2010
My Device: Not Specified

How to convert normal bimap to charcoal image??


I am developing aPhoto Editor application for this i need to convert normal bitmap to charcoal image can any one help me in this.

Posts: 1
Registered: ‎02-02-2012
My Device: None
My Carrier: VIP - Vodaphone

Re: how to preverify a jar on blackberry


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,


New Contributor
Posts: 3
Registered: ‎08-27-2012
My Device: ????
My Carrier: ????

Re: how to preverify a jar on blackberry

The solution to this is to put the correct PATH variable in the "Enviromental Variables" of the System(right click in My PC->Enviromental Variables).

If "PATH" already exists you need to add the path of the BIN of the JDK installed on the Computer.

The carpet you should add this is the bin:

for example: "C:\PATH_TO_THE_INSTALLED_JDK\bin".