Create Server.java

This is a Server Program. Run it before Client Program. And Even Before Running Server.java, From Command Prompt, move into the server directory and execute rmiregistry. When you are in server directory type on command prompt "start rmiregistry" without quotes obviously. Another Command Prompt like window should appear. Then you are set. Then run this Server.java