It seems that client must know where the server located its exported classes and the server must know where the client will put the exported classes, right? and it seems I have to setup this way to run the program correcly. whether I misunderstood sth?
If you package your server and client into two seperate executable jar files you will need to include the _stub classes in the client jar file. The stub classes are not being dynamically loaded as we can not presume the server machine is running an http server. I only used a policy file on the server side, as I thought that it was wise to specify exactly which ports and file a client could access. On the client side I didn't see this as necessary. I did however lose two points on general considerations but believe that was because I didn't include a clean shutdown method for the server which I lost four points on.