Opened windows are connecting via socket.
The window with yellow small square at the left-top -- is the server window .
When the connection is established, each window now can create objects on the global plane. Throw balls and cubes with 'serfcxdw' keys and see everybody else on the plane. Each window has its own objects that are colored yellow and can see other objects of other windows colored white.
Find .jar file in main dir, and run
$ java -jar socket_echo_server_swing.jar
- On Windows 10 home
- On Ubuntu20
To run .jar file, you need to have java or jdk installed (IntelliJ jdk is ok).
$ java
If there is no java in PATH, you should add it on your own:
$ export PATH="$HOME/example/.jdks/openjdk-15/bin:$PATH"
In my way, the example was empty because .jdks lay in home dir.
Download Java via apt
Type to check
$ java