title: Compiling complication, extending a class
body: <p>I have my two classes in a package called beginsthings. FirstClass compiles fine (of course, it doesn't extend anything), but SecondClass extends the first and the compiler is saying it cannot find FirstClass in it. I am trying to compile by going to the directory and typing javac beginsthings/SecondClass.java, am I doing something wrong?</p>
  
  <p><strong>error:</strong></p>
  
  <pre><code>beginsthings/SecondClass.java:6: cannot find symbol
  symbol: class FirstClass
  public class SecondClass extends FirstClass {
  </code></pre>
  
  <p>^it wont find the FirstClass being extended. I know the code inside works bc its a sample from a library
  and package beginsthings is a folder in a src folder.</p>
  
  <p><strong>beginsthings/FirstClass.java:</strong></p>
  
  <pre><code>package beginsthings;
  
  //bunch of gui imports
  public class FirstClass {
  
  //some code for drawing a circle
  
  }
  </code></pre>
  
  <p><strong>beginsthings/SecondClass.java:</strong></p>
  
  <pre><code>package beginsthings;
  
  import java.awt.Color;
  import java.awt.Graphics2D;
  
  public class SecondClass extends FirstClass {
  
     //code for the drop goes here, but extending FirstClass already doesn't work.
      }
  </code></pre>