- Build the project using
netbeans
. - Open the project's build folder.
- For each of 4 terminals, run the command:
// Terminal 1:
java -jar TrabalhoUm.jar 0
// Terminal 2:
java -jar TrabalhoUm.jar 1
// Terminal 3:
java -jar TrabalhoUm.jar 2
// Terminal 4:
java -jar TrabalhoUm.jar 3
- Build both projects using
netbeans
. - Open the project's build folder.
- For each of 3 terminals, run the command:
// Terminal 1:
java -jar trabalho-dois-servidor.jar
// Terminal 2:
java -jar trabalho-dois-cliente.jar name1
// Terminal 3:
java -jar trabalho-dois-cliente.jar name2