.Z files are not ZIP files, they're created using the compress tool. Java can't handle .Z out of the box, and neither can the Apache Commons Compress library.
Sorry but you mean that there no way to Extract .Z files from Java???
Joined: Sep 21, 2011
Of course it's possible. But -.Z not being a common file format any more- there is no widely used Java library for that (or maybe no library at all). In which case you would have to code it, or find a command you could call via the ProcessBuilder class. The UnxUtils contain such a tool for Windows, as does every Unix/Linux distribution in existence out of the box.