package rmi; import java.rmi.*; import server.*; public class RmiClientMethods { public ServerInterface getInterface() { String strName = "rmi://141.79.128.121:9999/TheRMIExample"; System.out.println("Client: Looking up " + strName + "..."); ServerInterface RMI = null; try { RMI = (ServerInterface)Naming.lookup(strName); } catch (Exception e) { System.out.println("Client: Exception thrown looking up " + strName); System.out.println("Client: " + e.getMessage().toString()); System.exit(1); } return RMI; } }