Bonjour à tous,

Je m'amuse avec RMI à ce moment là, j'ai une erreur au niveau de compilation de multi-package.
J'ai un dossier ../src qui contient 3 dossier du projet Server, Client, CommonFiles qui contiennent chacun leurs classes d'implementation.

../src/Server/
HelloServer.class (package Server; )

../src/Client/
HelloClient.class (package Client; )

../src/CommonFiles/
HelloInterface.class (package CommonFiles; )
HelloRemote.class (package CommonFiles; ) (object remote)

Quand je compiles avec javac, je poursuis comme ceci; (un rmiregistry est déjà en cours)

$ cd ../src/CommonFiles
$ javac -classpath ../ HelloRemote.java
$ rmic -classpath ../ CommonFiles.HelloRemote

$ cd ../src/Server
$ javac -classpath ../ HelloServer.java

cd ../src/Client
$ javac -classpath ../ HelloClient.java


La compilation est sans erreur, maintenant je veux lancer le serveur:

$ cd ../src/Server
$ java -classpath ../ -Djava.security.policy=policy.txt Server.HelloServer

Et là ca craque, erreur:

$ java -classpath ../ -Djava.security.policy=policy.txt Server.HelloServer
HelloServer: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: CommonFiles.HelloInterfacejava.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: CommonFiles.HelloInterface
.....
J'espère que j'ai été assez clair Quelqu'un saura pourquoi cette erreur?