aspose file tools*
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 Spring in Action this week in the Spring 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: 19720
    
  20

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