I need your help around JAVA RMI, I developed an example program used to sort the table. but I got this exception:
Erreur RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: ServicesTableau
and this is the source code of my server:
public class Serveur { public static void main(String args[]) { try { System.out.println("Server start ..."); ServicesTableauImpl od = new ServicesTableauImpl(); String url = "rmi://" + args[0] + "/ServicesTableauImpl"; System.out.println("Passe"); Naming.rebind(url, od); System.out.println("Attente d'invocations de client / CTRL-C pour stopper"); } catch (Exception e) { System.out.println("Erreur " + e.getMessage()); } } }
MDIT
source share