title: rmic error class not found
body: <p>I'm reading head first java and I'm about to try the ready baked codes that shows how to use RMI.
  These are the classes:</p>
  
  <p>The remote interface</p>
  
  <pre><code>import java.rmi.*;
  
  public interface MyRemote extends Remote {
  
      public String sayHello() throws RemoteException;
  }
  </code></pre>
  
  <p>The remote implementation</p>
  
  <pre><code>import java.rmi.*;
  import java.rmi.server.*;
  
  public class MyRemoteImpl extends UnicastRemoteObject implements MyRemote {
  
      public String sayHello() {
          return "Server Says,Hello";
      }
  
      public MyRemoteImpl() throws RemoteException { }
  
      public static void main(String[] args) {
  
          try {
              MyRemote service = new MyRemoteImpl();
              Naming.rebind("Remote Hello", service);
          } catch(Exception e) {
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>Then I placed the .java and the .class file in c:\RMI. When running it, it says MyRemoteImpl class not found even though I'm running from the same directory. How can i fix this? Thanks.</p>
  
  <p>EDIT: The error appear when I try to run this command </p>
  
  <pre><code>rmic MyRemoteImpl
  </code></pre>