Like with most things, running a RMI file in Java is quite easy once you know how. However an element of prior knowledge is required.
To run an RMI file in Java just follow the steps below.
The first thing you will have to do is to pull together all the interfaces and kinds of servers you have as well as your client programmes.
Once this is done you will need to generate stubs and skeletons for remote programmes. This would be your server or if your communication is one way from the client to the server. Do this by using the following command.
>rmic
To run the RMI registry by command type in
>start rmiregistry
Then you can run your server programme by typing in the command:
>start java
To call in your required methods on the server programme just start your client programme.
Your Java file should now run RMI file in Java.
To run an RMI file in Java just follow the steps below.
The first thing you will have to do is to pull together all the interfaces and kinds of servers you have as well as your client programmes.
Once this is done you will need to generate stubs and skeletons for remote programmes. This would be your server or if your communication is one way from the client to the server. Do this by using the following command.
>rmic
To run the RMI registry by command type in
>start rmiregistry
Then you can run your server programme by typing in the command:
>start java
To call in your required methods on the server programme just start your client programme.
Your Java file should now run RMI file in Java.