OK, I was able to run your example - what you need to do is set the codebase property for your server. The ClassNotFoundException is thrown because the RmiRegistry can't find your stub to save in the registry. All you have to do is change your command line to look something like -
(NEP - edited to break up really long command prompt line.) [ February 03, 2005: Message edited by: Nathan Pruett ]
Joined: Mar 16, 2004
Nathan thanks so much. Have one last question. Ok I found the documentation on sun about codebase.
Would you happen to know the reason why I must specify the codebase? [ February 03, 2005: Message edited by: peter cooke ]
Nearly three years later but just wanted to say thanks to Nate for answering this...
I had the exact same problem (worked unjar'd, threw the classNotFound when the application was jar'd). Interesting though, Sun says you don't need a codebase if you're using 1.5 (which I am). How come I needed the codebase afterall?
Note: If the server needs to support clients running on pre-5.0 VMs, then a stub class for the remote object implementation class needs to be pregenerated using the rmic compiler, and that stub class needs to be made available for clients to download. See the codebase tutorial for more details.