我写了一个小例子,但是每次都执行到Naming.rebind()时出错!不知道是什么原因!请各位高手帮帮忙!
提示信息如下:(我已经用rmic 生成了RemoteDateImpl_Stub和RemoteDateImpl_Skel)java.rmi.ServerException: Server RemoteException; nested exception is: 
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
java.lang.ClassNotFoundException: rmi.demo.RemoteDateImpl_Stub
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:350)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at rmi.demo.DateServer.main(DateServer.java:14)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
java.lang.ClassNotFoundException: rmi.demo.RemoteDateImpl_Stub
Caused by: java.lang.ClassNotFoundException: rmi.demo.RemoteDateImpl_Stub