Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Developed Zip File Not opening in Windows 7 default

I have created the Zip file using ZipOutputStream. The zip file is created sucessfully and able to open using WinRar and Winzip file. And the files are showing inside the Zip File.

But same file, I am unable to open in Windows 7 default Zip Extractor. While trying to extract using Windows 7 default extractor, there is no files inside the Zip File. But actually there are multiple files available inside the Zip File.

Please help on this... Thx..

like image 363
user2075087 Avatar asked Nov 04 '22 04:11

user2075087


1 Answers

My relative path was /somefolder/somefile.txt when removing the first "/" everything started working perfectly. (using the following path instead: "somefolder/somefile.txt").

like image 89
benchuk Avatar answered Nov 09 '22 13:11

benchuk