Code example for JarEntry

        method = "JarOutputStream", 
        args = {, java.util.jar.Manifest.class}
    @KnownFailure("Maybe not a failure, but dalvikvm -jar is not supported (, as yet).") 
    public void test_jar_class_path() throws Exception { 
        File fooJar = File.createTempFile("hyts_", ".jar");
        File barJar = File.createTempFile("hyts_", ".jar");
        // create the manifest 
        Manifest man = new Manifest();
        Attributes att = man.getMainAttributes();
        att.put(Attributes.Name.MANIFEST_VERSION, "1.0");
        att.put(Attributes.Name.MAIN_CLASS, "");
        att.put(Attributes.Name.CLASS_PATH, barJar.getName());
        File resources = Support_Resources.createTempFolder();
        JarOutputStream joutFoo = new JarOutputStream(new FileOutputStream(
Stop searching for code, let great code find you!  Add Codota to your java IDE