Having a little trouble starting my server. Any help is greatly appreciated. Thanks in advance! Following is the details:
d:\Java\public_html\classes\rmi\hello
Hello.class
HelloClient.class
HelloServer.class
HelloServer_Stub.class
All
java source code has the following package statememt:
package rmi.hello;
Source for HelloServer had the following:
Naming.rebind("//localhost/HelloServer", obj);
Following is the dos commands I am running:
D:\> start rmiregistry
D:\Java\public_html\classes> java -Djava.rmi.server.codebase=http://localhost/HelloServer/ -Djava.security.policy="C:\Program Files\Java\jdk1.5.0\jre\lib\security\javaRMI.policy" rmi.hello.HelloServer
Error is(not all lines included):
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: rmi.hello.HelloServer_Stub
java.rmi.ServerException: RemoteException occurred in server
thread; nested exce
ption is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: rmi.hello.HelloServer_Stub
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385
)
Thanks!