title: Archive a folder in Java using truezip
body: <p>I need to create a service that finds specific folders and archives them into on zip file.    </p>
  
  <p>I saw all kind of <a href="http://www.avajava.com/tutorials/lessons/how-can-i-create-a-zip-file-from-a-set-of-files.html" rel="nofollow">examples</a>, but it seems that have to read all the files in every folder. Am I right?</p>
  
  <p>Is there another way to do that (maybe using truezip for that matter)?</p>
  
  <p>I want to use truezip since I understood you could easily add files/folders to a zip file.</p>
  
  <p>I've searched for a simple example of archiving a folder using truezip - but I couldn't find anything useful - <strong>I need a simple example of how to archive a given folder</strong>.</p>
  
  <p>I'm using Java 6.  How to archive a folder in Java using truezip?</p>
  
  <p><strong>EDIT:</strong>
  Also found <a href="http://www.roseindia.net/java/example/java/io/ZipFolderExample.shtml" rel="nofollow">this example</a>.</p>