title: importing in Java from a different directory inside a directory
body: <p>I have a directory <code>pj</code>, which holds two directories, <code>dirA</code> and <code>Tests</code>. <code>Tests</code> has a file, <code>Test.java</code> (pj/Tests/Test.java), that imports from <code>File.java</code> (pj/dirA/File.java) in <code>dirA</code>. How do I specify such an import? I tried <code>import dirA.*</code> inside <code>Test.java</code> but that failed. <code>dirA</code> is a package.</p>
  
  <p><code>pj</code> and <code>Tests</code> are not packages (though I can make them be if necessary). </p>
  
  <p>In File.java, the statement is as follows:</p>
  
  <pre><code>package dirA;
  import list.*;
  </code></pre>
  
  <p>In Test.java, the statements before the class header are as follows </p>
  
  <pre><code>import pj.dirA.File;
  </code></pre>
  
  <p>When I do</p>
  
  <pre><code>javac Test.java 
  </code></pre>
  
  <p>from inside <code>Tests</code>, it fails. </p>