title: FileNotFoundException when trying to unzip an archive with java.util.zip.ZipFile
body: <p>I have a silly problem i haven't been able to figure out. Can anyone help me?
  My Code is as:</p>
  
  <pre><code>String zipname = "C:/1100.zip";
      String output = "C:/1100";
      BufferedInputStream bis = null;
      BufferedOutputStream bos = null;
      try {
          ZipFile zipFile = new ZipFile(zipname);
          Enumeration&lt;?&gt; enumeration = zipFile.entries();
          while (enumeration.hasMoreElements()) {
              ZipEntry zipEntry = (ZipEntry) enumeration.nextElement();
              System.out.println("Unzipping: " + zipEntry.getName());
              bis = new BufferedInputStream(zipFile.getInputStream(zipEntry));
              int size;
              byte[] buffer = new byte[2048];
  </code></pre>
  
  <p>It doesn't create a folder but debugging shows all the contents being generated.
  In Order to create a folder i used the code </p>
  
  <blockquote>
    <p><code>if(!output.exists()){ output.mkdir();} // here i get an error saying filenotfoundexception</code></p>
  </blockquote>
  
  <pre><code>            bos = new BufferedOutputStream(new FileOutputStream(new File(outPut)));
              while ((size = bis.read(buffer)) != -1) {
                  bos.write(buffer, 0, size);
              }
          }
      } catch (Exception ex) {
          ex.printStackTrace();
      } finally {
          bos.flush();
          bos.close();
          bis.close();
      }
  </code></pre>
  
  <p>My zip file contains images: a.jpg b.jpg... and in the same hierarchy, I have abc.xml.
  I need to extract the content as is in the zip file.
  Any helps here.</p>