package linda.test; import linda.server.LindaServer; import java.rmi.*; import java.rmi.registry.*; public class ServerTest { public static void main(String[] args) { try { LindaServer ls = new LindaServer(); LocateRegistry.createRegistry(Integer.parseInt(args[1])); Naming.rebind(args[0], ls); System.out.println("L'instance Linda a été publié sur le registre (" + args[0] + ") !\n"); } catch (Exception e) { e.printStackTrace(); } } }