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