import java.rmi.Naming; public class Kontoserver { public static void main(String args[]) throws Exception { KontoI k = new KontoImpl(); Naming.rebind("rmi://localhost/Kontotjeneste", k); System.out.println("Kontotjeneste registreret."); } }