First look for the avalible versions that is installed on your mechine
1 | $ archlinux-java status |
Available Java environments:
java-11-openjdk
java-8-openjdk (default)
To change to the desired version, we can do
1 | $ sudo archlinux-java set java-11-openjdk |