import Java.rmi.*;
import javax.naming.*;
/**
* This class registers RMIExampleServer with the RMI registry
* @author Renga
**/
public class RMIExampleSetup {
/**
* Main method
* @param args Command-line arguments
**/
public static void main( String[] args ) {
try {
// Set the security manager
System.setSecurityManager( new RMISecurityManager() );
// Create a new object of RMIExampleServer
RMIExampleServer server = new RMIExampleServer();
// Bind this object with the RMI registry
Naming.bind( "RMIExample", server );
} catch( Exception e ) {
e.printStackTrace();
}
}
}