Server Object import java.rmi.*; import java.rmi.server.*; public class SimpleServer extends UnicastRemoteObject implements SimpleInterfac public SimpleServer() throws RemoteException { super(); } public String printMessage(String name) throws RemoteException { System.out.println(name); return(Hello + name); } public static void main(String args[]) { System.setSecurityManager(new RMISecurityManager()); try { SimpleServer newServer = new SimpleServer(); System.out.println(SimpleServer attempting to bind to the registry); Naming.rebind(//ruddy.info:30010/SimpleServer, newServer); System.out.println(SimpleServer bound in the registry); } catch(Exception e) { System.out.println(SimpleServer error: + e.getMessage()); e.printStackTrace(); }} }