Modify default Java runtime in Linux
Java
If you have more than one version of Java installed in Linux, you may need to modify the default version. You can display the installed versions, and optionally modify the default, by invoking the following in a terminal session:
sudo update-alternatives --config java