Java tutorial
import java.io.IOException; import java.util.Enumeration; import java.util.jar.JarEntry; import java.util.jar.JarFile; import java.io.File; public class Main { public static void main(String args[]) throws IOException { JarFile jarFile = new JarFile(new File("c:/abc/yourJarFileName.jar")); Enumeration<JarEntry> e = jarFile.entries(); while (e.hasMoreElements()) { process(e.nextElement()); } jarFile.close(); } private static void process(Object obj) { JarEntry entry = (JarEntry) obj; String name = entry.getName(); long size = entry.getSize(); long compressedSize = entry.getCompressedSize(); System.out.println(name + "\t" + size + "\t" + compressedSize); } }