linux change java version to java 11 code example Example: how to change java version in linux $ sudo update-alternatives --config java