title: Error: The type com.sun.java.util.jar.pack.Package is not visible
body: <p>I have this error in my code when I tried  to create a program to read directories and its content.</p>
  
  <blockquote>
    <p>The type com.sun.java.util.jar.pack.Package is not visible</p>
  </blockquote>
  
  <p>My code is simple for now:</p>
  
  <pre><code>/**
   * 
   */
  package exercice5;
  
  import com.sun.java.util.jar.pack.Package.File;
  
  /**
   * @author 
   *
   */
  public class ListFilesAndDirectories {
  
      /**
       * 
       */
      public ListFilesAndDirectories() {
          // TODO Auto-generated constructor stub
      }
  
      /**
       * @param args
       */
      public static void main(String[] args) {
          File myfile = new File(".");
      }
  
  }
  </code></pre>
  
  <p>I do not understand where the problem is since I think that I have imported the right <code>File</code> package.</p>
  
  <p>Does someone understand this issue?</p>