title: rmi registery problems
body: <p>Dear stack overflow users.</p>
  
  <p>I've read a lot of RMI registry problems and tried them to my problem but to no success. So here is my case and I hope someone can at least help me along a bit.</p>
  
  <p>I am building a multi player pacman for a school project. It is required to use the java RMI so I created 3 nice jar files. The server containing (only) a main class that publishes the thing to a remote server and loads some stuff like a map etc. The client containing some swing junk that displays some nice forms. And third a library that contains all pacman code. </p>
  
  <p>Now when I start the server locally it starts a rmiregistry and binds the game to it (after setup of course). Then I connect my client to it and can play nicely. All works and I can start a view client all connecting to my local rmiregistery and get the game object nicely. 
  after that I booted up the registry independent of the server and ran the program success full again. Even through the IP of my laptop (not 127.0.0.1) it worked fine. Note that I didn't set the classpath of the registry. </p>
  
  <p>So after that I moved the stuff to the server(2008). I started the rmiregistry there, without a classpath and tryed to connect my server.jar to it, and failed. (could not find ..spel class exeption) so I fixed the classpath.... to no effect.... so I opened a new console started a new registry, copied the pacman.jar to c:\ and ran the server.jar with the -Djava.rmi.server.codebase=c:\ paramether.... to no effect... then I set a security manager... (<code>System.setSecurityManager(new RMISecurityManager());</code>)  and made a policy containing: <code>grant {permission java.security.AllPermission;};</code> and executed the server using
  server.jar -Djava.rmi.server.codebase=c:-Djava.security.policy=server.policy... with again no effect. </p>
  
  <p>I keep getting the same exception:</p>
  
  <pre><code>java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
          java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
          java.lang.ClassNotFoundException: Tervoort.Bram.Packman.Spel
          at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
          at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
          at sun.rmi.transport.Transport$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
  </code></pre>
  
  <p>Does any one has any clue to what the problem is? and how to fix it?</p>