Pat Farrell wrote:As Peter said, just copy the class files, or jar file, and it should run.
But, can I ask why you are using RMI? It is so last century. Its hard to get it to run through a lot of firewalls.
Modern cost usually used REST over HTTP rather than RMI.
HEY! I resent that. I was using it in 2005!
Not every application needs to make it through a firewall. Some are strictly internal. If they are, it's often the case that it's simpler and more efficient (both in developer and machine resource terms) to use RMI. Also, unlike HTTP, RMI can do callbacks.
There's sort of a progression running from local execution, shared resources on a local host, RMI, CORBA, REST, and then SOAP, and you could probably add a few more if you wished. As you move up the ladder, the portability increases, but the performance mostly decreases. Generally an app that's doing process-to-process communications will have a "sweet spot" where the costs and benefits balance out, although developer familiarity with technologies, shop standards, and other non-technical issues may shift it somewhat.
I should point out, just in case there are those unfamiliar with the sordid details, that RMI does go through firewalls better than the original CORBA did. CORBA was based on grabbing any port that was convenient at the time, which meant that you might as well switch off the firewall entirely. RMI uses ports that are commonly blocked, but they're few in number and (unlike CORBA), predictable.
An IDE is no substitute for an Intelligent Developer.