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.
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.