hello friends,
i am new to RMI. i have written the first program in Rmi and after writing them i have created the stubs and skeletons. I started the rmi registry. when i started the rmi registry by issuing the following command
start registry
the following appeared in a new dos window.
"security propertied not found. using defaults".
then i tried to start the rmiserver.
i issued the following command
java -Djava.security.policy=server.policy HelloServer
but i get the following in the command prompt:
E:\learnjava21\testrmi>java -Djava.security.policy=server.policy HelloServer
java.rmi.ServerException: Server RemoteException; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: HelloServer_Stub
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
n Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Unknown Source)
at HelloServer.main(HelloServer.java:21)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested ex
ception is:
java.lang.ClassNotFoundException: HelloServer_Stub
Caused by: java.lang.ClassNotFoundException: HelloServer_Stub
kinldy help me out as to how to begin.
i have all the files src,class, stub, skeleton and server.policy files in the same directory and the server and client are also running on the same machine.
Thanks for any help