import java.net.*; import java.rmi.*; public class AddServer { public static void main(String args[]) { // Create and install a security manager if (System.getSecurityManager() == null) { System.setSecurityManager(new RMISecurityManager()); } try { AddServerImpl addServerImpl = new AddServerImpl(); // You want to run your AddServer on jupiter using the port 56789 // and you want to use rmi to connect to jupiter from your local machine // Note that to accomplish this you have to start on jupiter // rmiregistry 56789 & Naming.rebind("rmi://jupiter.scs.ryerson.ca:56789/MyAddServer", addServerImpl); } catch (Exception e) { System.out.println("Exception: " + e.getMessage()); e.printStackTrace(); } } }