Calculates sum of two numbers using Java RMI
TwoSumRMI.mp4
- JDK 18
- Git
- Access to terminal/command prompt
- And will power ;-)
- Open terminal and Clone the repo
git clone https://github.com/Guleri24/TwoSumRMI.git
- Go to the project directory
cd TwoSumRMI
- Compile all Java programs
javac *.java
- Start the registry service by the rmiregistry tool
On Linux or Mac > rmiregistry &
On Windows > start rmiregistry
linux: After this enter key
Windows: RmiRegistry window opens -> Allow access -> Leave it open;
Go to the same cmd prompt and enter
- Start Server & Client
java Server.java
Open another terminal window and in the same project directory
java Client.java
For using the exec.sh file
- Open the exec.sh file in any text editor
- Edit
alacritty
with your terminal e.g. xterm, gnome-terminal, konsole, etc - Make it executable
chmod +x exec.sh