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