/** * */ package conditionalTest; /** * @author Yang Jiao * */ import java.net.MalformedURLException; import java.rmi.Naming; import java.rmi.RemoteException; public class TestServer { public static void main(String[] args) { try { RemoteConditionalTest server = new RemoteConditionalTestImpl(); Naming.rebind("TestServer", server); System.out.println("Server is binded and running now..."); } catch (RemoteException e) { e.printStackTrace(); } catch (MalformedURLException e) { e.printStackTrace(); } } }