Generate rmi stub & start rmiregistry