Here you can find the source of generateEmptyManifest()
public static Manifest generateEmptyManifest()
//package com.java2s; //License from project: Open Source License import java.util.jar.Attributes; import java.util.jar.Manifest; public class Main { /**// ww w .ja va2 s . co m * Generates a Jar Manifest based on the given parameters * @return */ public static Manifest generateEmptyManifest() { Manifest manifest = new Manifest(); manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, "1.0"); return manifest; } }