change java version to java 8 linux code example Example: change java version command line debian sudo update-alternatives --config java