This is an example of Server Implementation for Weather Service in Java RMI, based on example provided in "Advanced Java 2 Platform: How to program" by Deitel, Deitel & Santry, Chapter 13 ISBN 0-13-089560-1, 2002.
Please note that you have to run rmiregistry on a port (default rmi port is 1099) prior to running java rmi server.
For Unix based System,
$ rmiregistry [port number]
Here port number is optional. If not specified, it will start with default port number.
For Windows System
:\> start rmiregistry [port number]
Also, rmiregistry should be started from the directory where the .class files after compilation are located