Here you can find the source of getManifest(File jarFile)
public static Manifest getManifest(File jarFile) throws IOException
//package com.java2s; /*/*from w w w . ja va2s .c o m*/ * JFox - The most lightweight Java EE Application Server! * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn. * * JFox is licenced and re-distributable under GNU LGPL. */ import java.io.File; import java.io.IOException; import java.util.jar.JarFile; import java.util.jar.Manifest; public class Main { public static Manifest getManifest(File jarFile) throws IOException { return new JarFile(jarFile).getManifest(); } }