Java RMI stand-alone applications

274 Views Asked by At

Java RMI stand-alone applications

Is it possible to create a Server – Client Java application using RMI that can run just by running the server and the client (with servers IP), without any change on any environment variable, or installation of any other program?

As far as I know, to make an RMI compo (Server – Client) to work, you need: server application client application protocol file(s) (implementations) common for both

but the location of the server must be accessible by the client. Is there a way that java can make it accessible without any help?

1

There are 1 best solutions below

0
user207421 On

Is it possible to create a Server – Client Java application using RMI that can run just by running the server and the client (with servers IP), without any change on any environment variable, or installation of any other program?

RMI doesn't have environment variables or separate programs.

As far as I know, to make an RMI compo (Server – Client) to work, you need: server application client application protocol file(s) (implementations) common for both

No you don't. There is no such thing. You just need the relevant .class files in each place. I can't imagine where you are getting this misinformation from.

but the location of the server must be accessible by the client. Is there a way that java can make it accessible without any help?

No. Accessibility is a property of firewalls. If you could change that from the client there wouldn't be any point in having them in the first place.