aspose file tools*
The moose likes Java in General and the fly likes Zip question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Zip question" Watch "Zip question" New topic
Author

Zip question

Max Power
Ranch Hand

Joined: May 10, 2004
Posts: 47
hello, i have written a small program that extracts zipfiles. but somehow this only works with some zipfiles. somtimes i am getting a filenotfoundexception at the commented line?! why that? here is the code:



whats wrong with the code?


THANKS :-)
Mag Hoehme
Ranch Hand

Joined: Apr 07, 2002
Posts: 194
Hallo Andreas,

I tried to check your code, but I did not find any problem with it.

When does it throw the FileNotFoundException?
Which paramters did you enter?
What is the value of the p parameter?
Is it possible that some other process is locking the file indicated by p while your unzip program tries to open it?


Mag
Max Power
Ranch Hand

Joined: May 10, 2004
Posts: 47
hi, i rewrote the program and now it works....thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Zip question
 
Similar Threads
HELP - GZIPInputStream
View file from inside zip?
java.util.zip and a password-protected zip file
need help with zip decompression
java.util.zip and a password-protected zip file