import java.rmi.*;
public
class ShapeListServer{
public static void main(String args[]){
System.setSecurityManager(new RMISecurityManager());
try{
ShapeList aShapeList = new ShapeListServant(); 1
Naming.rebind("Shape
List", aShapeList ); 2
System.out.println("ShapeList server
ready");
}catch(Exception e) {
System.out.println("ShapeList server main " +
e.getMessage());}
}
}