Hello Everybody, i have a following code to unzip a zip file, but if i try to unzip with the command: java UnZip C:\backup_11-02-05_10-03-PM.zip. There is a error which throw : Extracting : c:\DA\backup_pro.java java.io.FileNotFoundException : c:\DA\backup_pro.java at.java.io.FileOutputStream.open<Native Method> at.java.io.FileOutputStream.<init><FileOutputStream.java:179> at.java.io.FileOutputStream.<init><FileOutputStream.java:131> at UnZip.main<UnZip.java:64> if i try to open with winzip there is no error, besides that i try to open another zip file with this program and the program could be opened without problem.
I think the problem special character such as "_/-%���" from within(or because the name of zip file "backup_11-02-05_10-03-PM.zip") the zip file, but i do not sure, if yes ? how do i overcome the problem ? Can someone give me a hint ? thank you very much
Hallo everybody, hallo Stefan, what do you mean with line 64, i think line 64 is not wrong. I try another program code, but i got not success, the error is the same and if the zip file consist of subdirectory and ���(umlaute or special character), the program won't unzip it but if the zip file only consist of one directory without special character, it will be successfully. I have read many forum, they said that the problem is in encode and decode the special character(it is recommended to use UTF-8 or UTF-16). Is that right ? but how should i use it. Any Help will be appreciated.
Joined: Jan 15, 2005
Hallo everybody, i have a new problem, if i jar a 11GB Files with my programm code, there is no problem but if i unjar it, there is an error like this : java.util.zip.ZipException : zip file too large how can i overcome the problem ?