Ci metto l'output del programma:

Inizio
Ok1
EccRemota
java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect