views:

148

answers:

3

Evaluating a third party data processing tool, I have bumped into a case where some WinZip files cause an exception:

Caused by: gnu.java.util.zip.ZipException: Unknown compression method 98
    at gnu.java.util.zip.ZipFile.getInputStream(ZipFile.java:470)

I have seen this with files created with WinZip 11.2 and newer. What's the latest version of WinZip (or compatible compression method) that the zip.dll can handle?

I've been hunting for some reference on this, but other than unversioned source code, I have had little luck so far.

A: 

Glancing at http://en.wikipedia.org/wiki/WinZip#History , I'd say it can probably open anything that winzip 8 could open, and later inventions except for unicode support are unique to winzip and will break in other programs if used. I haven't looked into it though.

David
A: 

The Winzip website has a page on additional compression algorithms which mentions compression algorithm 98. It claims this first appeared in Winzip version 10.0 beta.

I believe all versions of Winzip are capable of producing zip files which are readable by older utilities; it's just a question of which options you select.

Simon Nickerson
A: 

This code probably comes from the Classpath project http://www.gnu.org/software/classpath/

GNU Classpath