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