File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Preverification failed with Antenna Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Preverification failed with Antenna" Watch "Preverification failed with Antenna" New topic

Preverification failed with Antenna

Xu Song

Joined: Nov 16, 2001
Posts: 20
I'm using antenna package for my J2ME project.The antenna-bin-0.9.13.jar is put under lib directory of my simple project,and '<property name="antenna.home" value="lib\antenna-bin-0.9.13.jar"/>' is defined in build.xml.
The compiling works well.I failed on preverfication.The error message is:
'Preverification failed (result=1)'.Then I use WTK's command line tool--preverify.exe,the preverification is success.
Your response would be appreciated very much.

Xu Song
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
It works for me. I think you might have some settings wrong. Environment vars or ant script.
Xu Song

Joined: Nov 16, 2001
Posts: 20
True,there's a mistake in my build.xml.
In the <wtkpackage> task,if obfuscate is set with 'false',then the preverify should be 'false' as well.Because there's no .jar file existing in the project,it'll prompt "Preverification failed (result=1)" if preverify is set as true.
Solution:Set preverify in <wtkbuild> task as 'true'.If I obfuscate the built .jar file in <wtkpackage>,I got to set preverify as true in <wtkpackage>.

The tool is quite flexible,isn't it?
Xu Song
Raja Nagendra Kumar

Joined: Jun 14, 2008
Posts: 27
There seem to be bug in Antenna Code..

by replacing the parameter env with null in



i.e look for line Process proc = Runtime.getRuntime().exec(preverify + " " + arguments, env); and make it to Process proc = Runtime.getRuntime().exec(preverify + " " + arguments, null);

Raja Nagendra Kumar,
-Offshore Java Product Optimization Excellence

Raja Nagendra Kumar,
I agree. Here's the link:
subject: Preverification failed with Antenna
It's not a secret anymore!