// Eksemplet kræver muligvis JDK1.5 (Java 2 Standard Edition 5.0). // Bruger du JDK1.4 eller tidligere så se http://javabog.dk/OOP2/kode import java.rmi.Naming; public class Kontoserver { public static void main(String[] arg) throws Exception { KontoI k = new KontoImpl(); Naming.rebind("rmi://localhost/kontotjeneste", k); System.out.println("Kontotjeneste registreret."); } }