Open a command prompt or terminal.
Navigate to the client-server-auth directory of the project.
Build the client module by running the following command:
mvn clean install
This command will compile the client module, run tests if any, package it into a JAR file, and place it in the target directory of the client module.
Navigate to the ProjectServer directory.
Build the server module by running the following command:
mvn clean install
This command will compile the server module, run tests if any, package it into a JAR file, and place it in the target directory of the client module.
-
Go to ProjectServer directory and run the following command:
java -jar target/ProjectServer.jar -
Go to client-server-auth directory and run:
java -jar target/ProjectClient.jar
- Start the server.
- Connect the client with server.
- Send a message from client to server, server will receive the message.
- Reply the client with suitable response. The server can send any number of responses.
- To send a new message from client, start the client again.
Feel free to mention any issues you face.