What is the Java equivalent of this jar command:
C:\>jar cvf myjar.jar directory
I would like to create this jar file programmatically, since I cannot be sure that the jar command will be on the system path, where I could just start the external process.
Edit: all I want is to archive (and compress) the directory. No java standard needs to be followed. Those. The standard zipper is ok.
java jar
Marcus leon
source share