Samples JDK
AdditionServer.java
1 package com.freemindcafe.rmi.sample2.server;
2 
3 import java.rmi.Naming;
4 
5 public class AdditionServer {
6 
7  public static void main(String[] args) throws Exception{
8  System.setSecurityManager(new SecurityManager());
9  Addition Hello = new Addition();
10  Naming.rebind("rmi://localhost/rmi-sample2", Hello);
11  System.out.println("Addition Server is ready.");
12  }
13 
14 }