title: Read zip file contents using ZipFile java class inside script
body: <p>I have one requirement to read zip files content using a script. I wrote one script and tried to run it from my tool. I am using JAVA classes and it's giving the following error:</p>
  
  <blockquote>
    <p>Security restricted: Attempted access to restricted class name java.util.zip.ZipFile<br>
    Evaluator: java.lang.SecurityException: Illegal attempt to access class 'java.util.zip.ZipFile' via script<br>
    Caused by error in script at line 21</p>
  </blockquote>
  
  <pre><code> var zFile = new Packages.java.io.File(x);
   gs.print(zFile);
  
   var reading = new Packages.java.util.zip.ZipFile(zFile);// Error here
   gs.print(reading);
  </code></pre>