Refer the following url on how to compile and run the HelloWorld example:

http://java.sun.com/products/jdk/1.2/docs/guide/rmi/installedCsfHowTo.doc.html