Two Laptop Bag*
The moose likes Java in General and the fly likes Zip file cretaed using java not opening Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Zip file cretaed using java not opening" Watch "Zip file cretaed using java not opening" New topic
Author

Zip file cretaed using java not opening

Kaustav Ganguly
Greenhorn

Joined: Dec 14, 2009
Posts: 28
Hi ,

I created a zip file using java. I have attached the code below. But when I am trying to open it by using 7zip or windows extract all feature they are not able to open the file.
Is it not possible to open zip files created in java by using an archiving tool ? Do I need to write a java code to unzip it ?



Thanks
Kaustav
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19542
    
  16

Do you close aZipOutputStream itself after you've written and closed all separate entries?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
wood burning stoves
 
subject: Zip file cretaed using java not opening
 
Similar Threads
Unzipping a .zip file containing .gif files
using byte array to copy contents of one file to another
zip files without path info...
problems with unziping image files
Zipping files