title: Accessing one class from another, both being in the same package
body: <p>I'm new to Java, so if the code looks overly silly, please bear with me. :-)</p>
  
  <p>What I'm trying to achieve is simple: Define two classes <code>ClassA</code> and <code>ClassB</code>, which are both part of the same package <code>find_class</code> (this is also the name of the directory where the classes are.</p>
  
  <p>So my files are as follows.</p>
  
  <p><strong>ClassA.java</strong></p>
  
  <pre><code>package find_class;
  
  public class ClassA {
      public void func() {
  
      }
  }
  </code></pre>
  
  <p><strong>ClassB.java</strong></p>
  
  <pre><code>package find_class;
  
  import find_class.ClassA;
  
  public class ClassB {
      public static void main(String[] args) {
          ClassA a = new ClassA();
      }
  }
  </code></pre>
  
  <p>When I compile <code>ClassB</code>, I run into a number of errors:</p>
  
  <pre><code>find_class$ javac ClassB.java 
  ClassB.java:3: error: cannot find symbol
  import find_class.ClassA;
                   ^
    symbol:   class ClassA
    location: package find_class
  ClassB.java:7: error: cannot find symbol
          ClassA a = new ClassA();
          ^
    symbol:   class ClassA
    location: class ClassB
  ClassB.java:7: error: cannot find symbol
          ClassA a = new ClassA();
                         ^
    symbol:   class ClassA
    location: class ClassB
  3 errors
  </code></pre>
  
  <p>I'm not using any IDE and the directory structure is as follows:</p>
  
  <pre><code>find_class
    - ClassA.java
    - ClassB.java
  </code></pre>
  
  <p>What am I doing wrong?</p>