dcsimg

How do I read the manifest of a JAR file?

John Zukowski

Just retrieve it with the getManifest() method of the java.util.jar.JarFile class:

JarFile jar = new JarFile(file);
Manifest manifest = jar.getManifest();