dcsimg
How to create a platform independant zip file?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rupinder_Lall
Posted On:   Thursday, May 10, 2001 01:00 AM

I have tried the ZipOutputStream ,that gives me a file with .zip extension.That cannot be extracted on unix.The GZipoutputStream compresses only one file,I need to compress the contents the a directory.I cannot use the java.util.jar package.
Are there any 3rd party librabries that can be used.or any other way of compressing a dir.The compressed file has to be platform independant

Re: How to create a platform independant zip file?

Posted By:   Tim_Rohaly  
Posted On:   Thursday, May 10, 2001 07:12 AM

Zip files certainly can be extracted
on Unix, using unzip. You can even use
jar -x to unzip them. And why can't you
use the java.util.jar package? A
jar file can be read and written by any platform that
runs Java or zip, so unless you have some exotic
machine like a Univac you shouldn't have any problems.
About | Sitemap | Contact