I am trying to create a java program that will take in a directory path and then zip its con开发者_运维问答tents. What is the best way of achieving this? Are there any packages which have this functionality already implemented?
The package java.util.zip is available in the runtime.
In case the interface of java.util.zip is too complicated, you might want to have a look at http://commons.apache.org/compress/.
精彩评论