Skip to content

Instantly share code, notes, and snippets.

@sandokandias
Created January 6, 2019 18:25
Show Gist options
  • Save sandokandias/cd5c35b5c13b68d324b712a0023cb8ed to your computer and use it in GitHub Desktop.
Save sandokandias/cd5c35b5c13b68d324b712a0023cb8ed to your computer and use it in GitHub Desktop.
update-alternatives-java
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_191/bin/java" 1500
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_191/bin/javac" 1500
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.8.0_191/bin/javaws" 1500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment