I'm not sure about this particular book, but the general format for using RMI is as follows:
1. Create the server object
2. Run rmic to generate the stubs, etc.
3. Create the necessary security policy file
4. Create the client
5. Start the RMI Registry (rmiregistry)
6. Run the server program
7. run the client program