Hi, I have the exact same problem. After searching for a long time, only one way worked for me....put stub classes in HTTP server.
However, as Michael said, it would not be a good idea ask the grader put the stubs in HTTP or FTP server... what if they don't have it on their testing machine..
I am trying to use codebase.....where should the stubs locate? Should I set CLASSPATH on the server machine?
Right now, I have "server.jar", which is an executable jar and includes all my server-side classes and stubs. "client.jar" is an executable jar, which includes all client-side classes. I tried this command line, the error is that client could not find my stub..... Maybe something wrong with my codebase property, could somebody please take a look?
Start Server:
E:\RMI>start rmiregistry
E:\RMI>java -Djava.security.policy=file:/e:\RMI\security.policy -jar server.jar
Start Client:
E:\RMI>java -Djava.rmi.server.codebase=file:/e:\RMI\server.jar -Djava.security.policy=file:/e:\RMI\security.policy -jar client.jar 198.192.0.40 1099 db.db
Then, I got error:
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: server.ConnectionFactory_Stub
[ September 19, 2002: Message edited by: Sandra Baker ]