title: "cannot find symbol" while trying to compile a java file that implements an interface
body: <p>I'm trying to compile a class <code>Tmp</code> that implements an interface <code>TmpInter</code>.</p>
  
  <pre><code>/* Interface */
  package test;
  
  public interface TmpInter {
    public void show(String s);
  }
  
  /* Class */
  package test;
  
  public class Tmp extends TmpInter {
    public void show(String s) {
      System.out.println("hello");
    }
  }
  </code></pre>
  
  <p>Now when I'm trying to compile the class <code>Tmp.java</code> I'm getting the error</p>
  
  <pre><code>D:\java\rmi\Hello&gt;javac TmpInter.jav
  
  D:\java\rmi\Hello&gt;javac Tmp.java
  Tmp.java:3: cannot find symbol
  symbol: class TmpInter
  public class Tmp extends TmpInter
                           ^
  </code></pre>
  
  <p>I went through all the similar posts and tried those solutions but, in vain.</p>
  
  <p>I'm saving and running both the files in the same directory and the <code>.class</code> files are being generated in the same folder. I tried the <code>-classpath</code> option as well but didn't work. I'm compiling these files from the windows cmd when tried in Eclipse it is working fine. Also I tried compiling all the files at a time in that folder using <code>javac *.java</code> this is generating all the required <code>.class</code> files without any error but iam unable to figure out why this is not so when compiled individually.</p>