drainojunkie
drainojunkie

Reputation: 65

zip directory using java

I am trying to create a java program that will take in a directory path and then zip its contents. What is the best way of achieving this? Are there any packages which have this functionality already implemented?

Upvotes: 2

Views: 506

Answers (2)

koppor
koppor

Reputation: 20531

In case the interface of java.util.zip is too complicated, you might want to have a look at http://commons.apache.org/compress/.

Upvotes: 0

karmakaze
karmakaze

Reputation: 36164

The package java.util.zip is available in the runtime.

Upvotes: 3

Related Questions