public static void main(String[] args) {

		if (args.length != 2) {
			System.out.println("Usage: java JarWriter [sourceDir] [outputFilename]");
			System.exit(0);
		}
		try {
			JarOutputStream jarOut = new JarOutputStream(new FileOutputStream(args[1]));
			JarWriter writer = new JarWriter(jarOut);
			writer.outputRecursively(new File(args[0]), "", TaskMonitor.DUMMY);
			jarOut.close();
		}
		catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		catch (IOException e) {
			e.printStackTrace();
		}

	}
Simple test for the JarWriter
@param args args[0] is the source directory, args[1] is the output filename
Ghidra/Framework/Generic/src/main/java/generic/io/JarWriter.java