stu nicholls dot com | menu - Professional dropdown #3

click here

Steps for running RMI Program

You are running both the Server and Client programs on the same machine:

set path=C:\j2sdk1.4.0-rc\bin

Step 1: compile all the java programs

1) javac

2) javac

3) javac

4) javac

Step 2: Generate stubs and skeleton

> rmic addserverimpl

Step 3: start the rmiregistry

> start rmiregistry [A new blank window will be generated]

Step 4: In a new window

> java addserver

Step 5: In another window

> java addclient 4 5


  • is the loopback IP and 4 and 5 are two arguments, If you have the server on other machine then give the IP of that machine

  • You are giving the loopback address and the result of arithmatic operations are displayed

  • Instead of giving loop back IP address of the machine you can also localhost

  • >java addclient localhost 4 5


    Our aim is to provide information to the knowledge seekers. 

    click here