title: java.rmi.ServerException: RemoteException occurred in server thread (ClassNotFoundException)
body: <p>The following method :</p>
  
  <pre><code>private void startServer() { // snippet that starts the server on the local machine
      try {
           RemoteMethodImpl impl = new RemoteMethodImpl();
           Naming.rebind( "Illusive-Server" , impl );
      }catch(Exception exc) {
          JOptionPane.showMessageDialog(this, "Problem starting the server", "Error", JOptionPane.ERROR_MESSAGE);
          System.out.println(exc);
      }
  }
  </code></pre>
  
  <p>throws this exception :<code>java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
          java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
          java.lang.ClassNotFoundException: Interfaces.RemoteMethodIntf
  </code></p>
  
  <p>When i start my project, i am greeted with the message in JOptionPane saying <em>problem starting the server and then the above exception.</em> What could be the reason for this ?</p>
  
  <p>I don't understand why does the last statement of exception says <em>class not found exc when i have imported the right packages</em></p>