use another version of java in ubuntu code example Example: change java version command line debian sudo update-alternatives --config java