You are on page 1of 1

// LoginRMIServer.

java
import java.rmi.*;
import java.rmi.server.*;
public class LoginRMIServer
{
public static void main(String args[])
{
// Create and install the security manager
System.setSecurityManager(new RMISecurityManager());
try
{
// Create LoginRMIImpl
LoginRMIImpl myLogin = new LoginRMIImpl("//Binita/myLoginRMI");
System.out.println("LoginRMI Server ready.");
} catch (Exception e)
{
System.out.println("Exception: " + e.getMessage());
e.printStackTrace();
}
}
}