Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.rmi.*;
- /**
- *
- * @author Jay
- */
- public class RMIClient {
- public static void main(String[] args)
- {
- try
- {
- RemoteServer s=(RemoteServer)
- Naming.lookup("rmi://localhost/RMIServer");
- s.helloYou();
- }
- catch ( Exception e )
- {
- System.out.println("Exception: " + e.getMessage());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment