It's not a secret anymore!
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


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: 20078
    
  30

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Zip file cretaed using java not opening
 
It's not a secret anymore!