This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 19674
    
  18

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Zip file cretaed using java not opening