how to change default java path in linux code example Example: ubuntu change default java path sudo update-alternatives --config java