phancox
Posts: 17
Joined: Sat Jun 24, 2006 11:03 am

Pack200 Fails in ANT Script

Just started working with Pack200 compression and LZMA compression. Both work fine when I build interactively on the machine where I prepare the .AIP Works fine on this machine with my ANT build scripts also.

However, when I attempt to run on the build server using the same scripts, every JAR file fails with:

Code: Select all

[exec] The packing of the APPDIR\lib\SportZman.jar file failed. Error Message: The packing process failed.
I suspect it'll have something to do with location for temporary files. Is there any way to get more details on the error? Or can you tell me if any temporary locations are required for the Pack200 process?

REGARDS
Peter
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Pack200 Fails in ANT Script

Hi Peter,

Can you please make sure you have JRE available on the machine where ANT build fails? Also, its location should be specified in Tools dialog "Java Packing" section (ribbon menu -> Options -> External Tools).

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phancox
Posts: 17
Joined: Sat Jun 24, 2006 11:03 am

Re: Pack200 Fails in ANT Script

Setting the JRE as you suggested seems to have fixed the problem. However, there were a few oddities.

I don't recall ever setting this on either machine. The machine where everything appeared to be working was set to the bin directory within JRE7. When I tried to take it up a level (i.e., drop off the "bin" piece), AI complained that it wasn't a valid JDK. When I set it to point to a JDK it accepted it. When building the install package I now get a couple of warnings that the jar file signature was broken by the packing process. Probably only about 1% of the files but I didn't have any errors before. Didn't do enough testing to know if the previous package introduced errors?

On the machine where Pack didn't work it was pointing to a valid JRE. Changed it to JDK and now runs the same on both machines.

Looks like it has to be a JDK not just JRE?

Thanks for your help.

Return to “Common Problems”