- Java
- RMI
Clone the repository:
$ git clone https://github.com/freemanpivo/rmi_JAVA_chat.git
Enter bin/ folder:
$ cd rmi_chat/bin/
Compile RMI ChatClient
$ rmic com.client.ChatClient
Compile RMI ChatServer
$ rmic com.server.ChatServer
Open RMI registry
$ rmiregistry
Open another tab in your terminal and certifies that you are into bin/ folder.
$ cd rmi_chat/bin/
Start the server.
$ java com.server.ServerDriver
Open another tab in your terminal and certifies that you are into bin/ folder.
$ cd rmi_chat/bin/
Start a Client with your name.
$ java com.client.ClientDriver YOUR_NAME_HERE
Now you can write things into the terminal! So, if you want to talk to someone else, you need to open a new tab and redo the steps described in this section.