import java.rmi.*; import java.rmi.server.*; import java.rmi.registry.*; public class RMIServer1{ public static void main(String argumendid[]) throws Exception{ LocateRegistry.getRegistry("localhost", 1099).rebind("arvutamine", UnicastRemoteObject.exportObject(new Koolilaps())); } }