title: java import "cannot find symbol"
body: <p>I'm about porting a linux tool to windows. The tool works fine on linux system, but now on windows I get this "cannot find symbol" error. </p>
  
  <p>I have this little main class:</p>
  
  <pre><code>package foo;
  
  import foo.bar;
  
  public class Main {
      public static void main(String[] args) throws Exception {
          bar.getInstance();
      }
  }
  </code></pre>
  
  <p>and the error appears now, while doing javac Main.java:</p>
  
  <p>import foo.bar: cannot find symbol
          ^
  symbol: class bar
  location: package foo</p>
  
  <p>Main.java and bar.java are in the same directory.
  what am I missing?</p>