package RemoteServlet;import java.rmi.Naming;import java.rmi.RMISecurityManager;import java.rmi.RemoteException;import java.net.MalformedURLException;public class RemoteServer { public static void main(String[] args) { System.setSecurityManager( new RMISecurityManager() ); try { RemoteServerImpl remoteServlet = new RemoteServerImpl(); Naming.rebind( "RemoteServer", (RemoteServerImpl) remoteServlet ); } catch ( RemoteException re ) { re.printStackTrace(); } catch ( MalformedURLException mue ) { mue.printStackTrace(); } }}