Ich brauche Ihre Hilfe rund um JAVA RMI, ich entwickelte ein Beispielprogramm zum Sortieren der Tabelle. aber ich habe diese Ausnahme:java.rmi.UnmarshalException: Fehler beim Abstellen von Argumenten; verschachtelte Ausnahme ist: java.lang.ClassNotFoundException: ServicesTableau
Erreur RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: ServicesTableau
und dies ist mein Server-Quellcode:
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());
}
/*
catch(java.net.MalformatedURLException e){
System.out.println("Mauvais nom de serveur");
System.exit(1);
}
catch(RemoteException e){
System.out.println("Pas de Rmiregistry");
System.exit(1);
}
*/
}
}
Ist diese Klasse ServicesTableauImpl im Klassenpfad verfügbar? –