code: public static void main(String[] args)
  	{
  	   
  		try
  		{
  			RMI.startRmiRegistry(Integer.parseInt(args[0]));
  			System.in.read();
  		}
  		catch (Exception e)
  		{
  		
  			e.printStackTrace();
  		}
  	}
docs: --------------------------------------------------------