// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.util.jar.*;

public class Demo {
    public static void main(String[] args) throws Exception {
        JarFile jar = new JarFile(Demo.class.getProtectionDomain().getCodeSource().getLocation().getPath());
        Manifest mf = jar.getManifest();
        String ver = mf.getEntries().get("www.xxxx.com").getValue("API-version");
        System.out.println(ver);
    }
}
