title: Java file not compiling
body: <p>Currently trying to work with objects in Java. Everything goes fine until I hit compile. Have been reading a couple of other questions regarding the same problem, or the same given error, and at this point I am not sure wether I am forgetting something or that I need to change my classpath.</p>
  
  <p>Main Class file: </p>
  
  <pre><code>package TesterClass;
  
  public class Tester {
      public static void main(String[] args){
  
          TesterClass firstTest  = new TesterClass();
          firstTest.stringPrinter();
      }
  }
  </code></pre>
  
  <p>The file that is supposed to be functioning as a package file: </p>
  
  <pre><code>package TesterClass;
  
  public class TesterClass{
  
      private String workingSegment;
  
      public TesterClass(){
          workingSegment = "Working";
      }
  
      public void stringPrinter(){
          System.out.println(workingSegment);
      }
  }
  </code></pre>
  
  <p>The 2 files are in the same directory and I am trying to manually compile them with 
  "javac Tester.java". The error I get is about the fact that its having issues with the package. All help is welcome! </p>
  
  <p>EDIT: Forgot to post the actual compiler error. </p>
  
  <pre><code>Tester.java:9: cannot find symbol
  symbol  : class TesterClass
  location: class TesterClass.Tester
          TesterClass firstTest;
          ^
  Tester.java:11: cannot find symbol
  symbol  : class TesterClass
  location: class TesterClass.Tester
              firstTest = new TesterClass();
                          ^
  2 errors
  </code></pre>