title: how to zip a folder itself using java
body: <p>Suppose I have the following directory structure.  </p>
  
  <pre><code>D:\reports\january\
  </code></pre>
  
  <p>Inside january there are suppose two excel files say A.xls and B.xls. There are many places where it has been written about how to zip files using <code>java.util.zip</code>. But I want to zip the january folder itself inside reports folder so that both <strong>january</strong> and <strong>january.zip</strong> will be present inside reports. (<strong><em>That means when I unzip the january.zip file I should get the january folder</em></strong>).  </p>
  
  <p>Can anyone please provide me the code to do this using <code>java.util.zip</code>. Please let me know whether this can be more easily done by using other libraries.  </p>
  
  <p>Thanks a lot...</p>