title: Java compilation error cannot find symbol of interface
body: <p>I am trying to implement an interface in my java code as such:</p>
  
  <pre><code>package PJ1;
  
  public class Fraction implements FractionInterface, Comparable&lt;Fraction&gt;{
  </code></pre>
  
  <p>Now, FractionInterface.class in the same directory as the Fraction.java file, and it is also in package PJ1:</p>
  
  <pre><code>package PJ1;
  
  public interface FractionInterface{
  </code></pre>
  
  <p>Yet when I try to compile my Fraction.java file, I get the following error:</p>
  
  <pre><code>D:\CSC220\PJ1\Fraction.java:36: error: cannot find symbol
  public class Fraction implements FractionInterface, Comparable&lt;Fraction&gt;
                                   ^
  </code></pre>
  
  <p>I'm stumped, since all of my related files are in the same directory and I'm trying to put all of my class files in the same package.  Any ideas?</p>