Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exception with ZipFile

0 views
Skip to first unread message

Aus Khalil

unread,
Dec 25, 1999, 3:00:00 AM12/25/99
to
Hello,
I have the following program, which makes a ZipFile from a File and try to
get the ZipEntries.

ZipFile zipfile;
String fileName = openFileDialog1.getFile();
File file = new File(fileName);
zipfile = null;
try

zipfile = new ZipFile(file); /*here is the problem*/
...
}
The problem occures while making the ZipFile object. I get the following
Exception:

java.io.IOException: Ipt4.zip
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:72)
at java.util.zip.ZipFile.<init>(ZipFile.java:59)
at java.util.zip.ZipFile.<init>(ZipFile.java:71)
at Frame1.openMenuItem_ActionPerformed_Interaction1(Frame1.java:215)
at Frame1.openMenuItem_ActionPerformed(Frame1.java:190)
at Frame1$SymAction.actionPerformed(Frame1.java:178)
at java.awt.MenuItem.processActionEvent(MenuItem.java:435)
at java.awt.MenuItem.processEvent(MenuItem.java:399)
at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:190)
at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:182)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)


Anyone ?

Thanks in Advance,
Aus Khalil


0 new messages