The existing belief revision games simulator [1] does not work in my computer by the command the authors presented. I have successeded to execute it by following way. This may be helpful for you.
- Operating System: macOS Ventura 13.5
- OpenJDK: 20.0.1
- Docker Desktop: 4.19.0
Note that the instruction from 1 to 4 is based on [2].
- Install XQuatz
- Launch XQuatz and open preference settings
- In the security tab, check "Allow connections from network clients"
- In the XQuatz window (like terminal), execute
xhost + ${hostname}
. After configuration, it should be kept launching. - Install Docker Desktop
- Create
Dockerfile
andcompose.yaml
in the directory whichbrg.jar
downloaded from [1] exists - Copy and paste following contents to
Dockerfile
andcompose.yaml
, respectively
Dockerfile
:
FROM ibmjava:8
RUN apt update
RUN apt install -y libxtst6 libxi6 libxft2
WORKDIR /workspace
compose.yaml
:
version: '3'
services:
container:
build: .
tty: true
environment:
- DISPLAY=docker.for.mac.host.internal:0
volumes:
- .:/workspace
- /tmp/.X11-unix:/tmp/.X11-unix
- Launch Docker Desktop
- Launch Docker container by executing
docker compose up -d
in the directorybrg.jar
exists with your terminal - Enter to the container by executing
docker compose exec container bash
- Now you are at
/workspace
in the container. You can seebrg.jar
in the directory. - Execute
java -jar brg.jar
in the container and you can see the simulator's GUI window. To stop the simulator, pressctrl
+c
in the terminal - To leave from the container, first type
exit
and pressEnter
. Second, executedocker compose down
after you see the host OS's terminal.
These instructions are based on macOS Ventura, but you may launch the existing simulator in other operating systems by similar way (I have not checked yet).