aspose file tools*
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
Author

Preverification failed with Antenna

Xu Song
Greenhorn

Joined: Nov 16, 2001
Posts: 20
Hi,
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.

regards,
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
Greenhorn

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
Greenhorn

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

by replacing the parameter env with null in

de.pleumann.antenna.misc.Utility#preverify

method

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);

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
-Offshore Java Product Optimization Excellence


Raja Nagendra Kumar,
C.T.O, www.tejasoft.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Preverification failed with Antenna