Created
May 22, 2020 09:58
-
-
Save EdoardoVignati/17dad9844d8999a626cb9b6b0a97f1d1 to your computer and use it in GitHub Desktop.
Alias to change java, javac and JAVA_HOME easily between Java versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias java13="sudo rm /usr/bin/java; sudo ln -s JAVA_HOME=/usr/lib/jvm/jdk-13.0.2/bin/java /usr/bin/java; sudo rm /usr/bin/javac; sudo ln -s JAVA_HOME=/usr/lib/jvm/jdk-13.0.2/bin/javac /usr/bin/javac; echo 'export JAVA_HOME=\"JAVA_HOME=/usr/lib/jvm/jdk-13.0.2/\"'>~/.javahome; source ~/.bashrc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment