Is it necessary or important to set a class path in the registry for RMI to work correctly?
Contrary to @Rahul's baseless assertion, it is indeed necessary to set a CLASSPATH for the RMI Registry, unless:
LocateRegistry.createRegistry().
If you don't do one of these four things, you will get a ServerException
wrapping a ClassNotFoundException
when you bind your remote object(s) to the Registry.