Skip to content

Instantly share code, notes, and snippets.

@tiagotele
Created December 14, 2020 13:50
Show Gist options
  • Save tiagotele/7d8a7404a741ddd39d7929e82979dcb5 to your computer and use it in GitHub Desktop.
Save tiagotele/7d8a7404a741ddd39d7929e82979dcb5 to your computer and use it in GitHub Desktop.
Get and set java versions
sudo update-alternatives --config java
#There are 2 choices for the alternative java (providing /usr/bin/java).
# Selection Path Priority Status
#------------------------------------------------------------
#* 0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto mode
# 1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode
# 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment