The following lines were added (+) and removed (-):
== There is only one alternative in link group java ==# Download the version you wish to run, for our example Oracle 8 from the file jre-8u181-linux-x64.tar.gz# Extract jre-8u181-linux-x64.tar.gz to /usr/local - you end up the the java binary in the path: /usr/local/jre1.8.0_181/bin# Add the java to the update-alternatives link group - sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/jre1.8.0_181/bin/java" 8# Then run update-alternatives