Skip to main content
Home Live to Learn!

Main navigation

  • Home
  • Learn
    • FoxPro
    • MS-DOS
    • C PRG
    • Java
    • ASP
    • Ruby on Rails
    • ASP.NET
    • E-Books
    • Exam Preparation
    • Tools
  • Blog
  • Forums
  • Contact

User account menu

  • Log in
  1. Learn by Example - Java Sample Programs
  2. RMI - Example AddServer

RMI - Example AddServer

Submitted by Karthikeyan on Jun 01, 2012 - 07:26

Compile all the below files as usual
> javac *.java

Then create stub class by running the below command
> rmic AddServerImpl.java

Running :
1. Start rmi registry
>start rmiregistry
2. Run the server
>java AddServer 127.0.0.1
3. Run AddServer
>java AddClient 127.0.0.1 15 20

The output will be shown as
The first number is 15
The second number is 20
The sum is 35.0

  • AddServer
  • AddServer Interface
  • AddServer Implementation
  • Add Client
  • ‹ JDBC Program Select, Insert, Update, Delete records
  • Up
  • AddServer ›

Get Updates via Email

@

Featured Blog Posts

Convert Currency in Number to Words (Indian Rupees) - MS Excel
Foxpro Tutorial and Programs
Convert Currency in Number to Words in MS Word
Best way to Use Rupee Symbol in Windows – Easy steps
Convert Currency in Number to Words (Indian Rupees) - Version 2
Convert Currency in Number to Words - MS Access
Creating All in One Windows XP DVD with all Important Applications

Recent Updates

WOW! Ubuntu 22.10 Installation and new features
Ubuntu 21.10 - What's new? - Upgrade Experience and Screenshots
Convert Currency in Number to Words - MS Access Sample Database
Algebra Equation Solver Download
Convert Currency in Number to Words Version 2 - Download VBA Script
Convert Currency in Number to Words - Download VBA script
Tools & Downloads

© 2009-2023 Live to Learn.In

Terms of Use | Privacy Policy