try {
HelloImpl h = new HelloImpl();
Naming.rebind("hello", h);
System.out.println("Hello Server ready.");
}
catch (RemoteException re) {
System.out.println("Exception in HelloImpl.main: " + re);
}
catch (MalformedURLException e) {
System.out.println("MalformedURLException in HelloImpl.main: " + e);
}