- Client CANNOT be started in Eclipse, Eclipse merely emulates a console/terminal.
- Server can be started in eclipse or compiled, must pass PORT as argument.
- Compile client in eclipse.
- Right-click client.java.
- Export as RUNNABLE JAR.
- Select the client to be the launch configuration.
- Start client in the folder project_2/ with IP and PORT as arguments in the mentioned order.
The server is compiled to a runnable JAR file in this scenario. May be executed in the eclipse environment.
java -jar server.jar 6666
java -jar client.jar localhost 6666