Skip to content

Instantly share code, notes, and snippets.

@opnchaudhary
Created October 17, 2019 08:59
Show Gist options
  • Save opnchaudhary/89879f90047de7f6afb383aaa01edef6 to your computer and use it in GitHub Desktop.
Save opnchaudhary/89879f90047de7f6afb383aaa01edef6 to your computer and use it in GitHub Desktop.
Set java in alternatives after manual install
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk/jdk1.8.0_144/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/jdk/jdk1.8.0_144/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/jdk/jdk1.8.0_144/bin/javaws" 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment