try {
RemoteServer server = (RemoteServer)
Naming.lookup("rmi://"+host+"/NiftyServer");
server.asyncExecute( new MyCalculation(100), this );
System.out.println("call done...");
} catch (java.io.IOException e) {
System.out.println(e);
// I/O Error or bad URL
} catch (NotBoundException e) {
System.out.println(e);
// NiftyServer isn't registered
}