Hi,
If your exception is regarding stub class like Server_Stub.class or remote object class not found which means when you try to run your RMI server, you need to create stub class of your remote object class. For JDK1.6 doesn't need. So you've to create a Stub class as follow:
<class_directory>rmic example.hello.Server
It'll generate Server_Stub.class [also can generate Server_Skel.class for JDK1.4]. And then you need to specify codebase into your command line like:
<class_directory>java -Djava.rmi.server.codebase=file://<class directory path>/ example.hello.Server
You can programically define above codebase in your Server program:
I hope you'll not get any exception regarding class not found.
Cheers