title: Java: "error: cannot access" the interface
body: <p>So I have this <code>Annotator</code> interface: </p>
  
  <pre><code>public interface Annotator {
      String getViewName();
  
      View getView(TextAnnotation var1) throws AnnotatorException;
  
      String[] getRequiredViews();
  }
  </code></pre>
  
  <p>which is extended by <code>GazetteerViewGenerator</code>: </p>
  
  <pre><code>public class GazetteerViewGenerator extends Annotator {
      public static final GazetteerViewGenerator gazetteersInstance;
      ... 
  </code></pre>
  
  <p>The issue is that when I create an object of <code>GazetteerViewGenerator</code> and cast into <code>Annotator</code> it gives me errors, which is really weird: </p>
  
  <pre><code>public class MyCuratorClient {
      public static Annotator gazetteers = (Annotator) GazetteerViewGenerator.gazetteersInstance;
      ... 
  </code></pre>
  
  <p>and here is the error: </p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project Illinois-Combined-Coref: Compilation failure
  [ERROR] /Users/danielk/ideaProjects/Illinois-Combined-Coref/src/main/java/edu/illinois/cs/cogcomp/lbj/coref/util/MyCuratorClient.java:[25,38] error: cannot access Annotator
  [ERROR] -&gt; [Help 1]
  [ERROR] 
  </code></pre>
  
  <p>Any ideas where I am going wrong? </p>