RMI (Remote Method Invocation)

RMI Architecture

Requirements for the distributed application

Step 5

Open command prompt and go to the location where your project files are located and first compile all the java files.

By using,

javac *.java

Next step is to create stub and skeleton objects using the rmi compiler. The rmic tool invokes the RMI compiler and creates stub and skeleton objects.

rmic AdderRemote

Or else if you a package name, then try the above command with your package name.

rmic <package name>.AdderRemote

Step 6: Start the registry service by the rmi registry tool



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store