Summary of steps for setting up RMI
1. Compile the java code.
2. Place the interface class extending Remote on the server and the client.
3. Place the implementation class extending RemoteObject on the server.
4. Generate stubs and skeletons on the server by running the program rmic. Copy the stubs to the client.
5. Start the name registry server on the rmi server machine.
6. Start the program that creates and registers objects of the implementation class on the rmi server machine.
7. Run the client program.
For more details, see the RMI tutorial at http://www.npac.syr.edu/projects/tutorials/JDBC