Changing Java version in Linux
How to change the default version of Java
List all the alternatives
sudo update-java-alternatives -l
Then you can set the default:
sudo update-java-alternatives -s java-1-11xxxx
sudo update-java-alternatives -l
Then you can set the default:
sudo update-java-alternatives -s java-1-11xxxx