Hello,
The RMI Registry is a seperate process basically it binds to a port (1099) by default. Your
Java program (the Server) looks up on the Registry to retrieve an object but other than that it has nothing to do with the registry. There is no reason for the registry to die just because your Java program terminates.
You will need to kill the RMI Registry and the exit the server program every time you wish to re-run. Alternatively I would have thought you can get away with leaving the RMI Registry running but just restarting the Java server. So use this first time:
rmiregistry &
java -jar -server.jar &
Then just use:
java -jar -server.jar &
Good luck
Ian