I am not sure which is the right group for this.
- Shekar
> I am not sure which is the right group for this.
Probably non, because you didn't do your homework:
(a) Decide in which format you want to archive your files. Make double
sure that the format you chose can indeed contain the data you want
(e.g. you apparently want multiple files in one archive). Randomly
picking a format because you just saw a library for it is not a good idea.
(b) Check if you have the necessary tools in Java to build the archive
you want. If not, get them. E.g. Google for libraries implementing the
format, or get the format's documentation and implement it (which
requires some effort).
(c) Check if you have the necessary tools on HP-UX to unpack the
archive. If not, check if you can install them (maybe they are optional
OS installation packages). If that doesn't work, check if there are free
implementations (hint, hint), get them, compile them and install them.
If that doesn't work, write your own tool.
What does not work is to hope that, just because you found tool or
library X in Java and tool Y on your HP-UX, for some magic spell to make
them fit together. Just because you want them to work together will not
make them work together.
/Thomas
PS: Contrary to what has been claimed elsewhere, gzip is not a standard
Unix tool. It is a GNU tool you can find on many OS', particular the
ones build around GNU software or enhanced with GNU software. And you
can install it on almost any system. But it does not come with each
Unix. Historically it was intended as a replacement for compress,
because of the patent problems around the compression algorithm used by
compress.

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
ctippur@gmail.com - 02 Dec 2005 15:58 GMT
Thank you Thomas.
- Shekar