Client applet or application
The client must also have a security manager. Applets already have one; applications will make the same call to System.setSecurityManager as the server did.
The client will look up the server name in the name registry, obtaining a reference to the remote object: String url=“rmi://osprey7.npac.syr.edu/”; Hello obj = (Hello) Naming.lookup(url + “HelloServer”);
Then the client can call any method in the interface to this server: obj.sayHello();
Look at Hello.html and HelloApplet.java