Finding java packages available in a jar file..

Hi All,

I need to find the java packages available in the jar file. I thought of doing this like this. I traverse through the directory, and if a directory has a .class file, then i can form the package structure by finding the parent.

But the problem is ZipEntry doesn't seem to have any method to find the files/sub directory count in a zipped folder.

Is is possible to find it or not? I feel like Files/Folder will be maintained like Individual entry with path as an attribute (to recreate directory structure). am I right? how to solve this problem?

[581 byte] By [chaos_begins_herea] at [2007-11-27 6:44:12]
# 1
See "Get list of classes in package (in a Jar)" at http://www.rgagnon.com/javadetails/java-0513.htmlBye.
RealHowToa at 2007-7-12 18:15:23 > top of Java-index,Core,Core APIs...