Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » zipFile.getEntry(path) returns null
zipFile.getEntry(path) returns null [message #104944] Mon, 11 February 2008 11:36
Eclipse UserFriend
Originally posted by: tweety_pks.gafs.xhdj


I have the following problem: I have a directory with icons and I want to
get one.
During debugging I go to the getZipEntry(String path) method. There if I
have the following source code:

Enumeration zipEntries = zipFile.entries();
while(zipEntries.hasMoreElements()) {
ZipEntry entry = (ZipEntry) zipEntries.nextElement();
if(!entry.isDirectory() && !entry.getName().endsWith("java") &&

It returns the entry, which I want. But when I call :

ZipEntry entry = zipFile.getEntry(path);

it returns null.

Could someone tell me, of what that is due to?


Petya Sabeva
Previous Topic:Problems on starting an RCP with EclipseStarter
Next Topic:Unknown Source x ConvolveOp
Goto Forum:

Current Time: Sun Oct 24 20:10:30 GMT 2021

Powered by FUDForum. Page generated in 0.01696 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top