Created
July 6, 2019 20:37
-
-
Save michaelilyin/a71d522c4d8072fc5b4f9c1340e4eb22 to your computer and use it in GitHub Desktop.
java alternatives
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
sudo sh -c 'for bin in /opt/jdk-12.0.1/bin/*; do update-alternatives --install /usr/bin/$(basename $bin) $(basename $bin) $bin 100; done' | |
sudo sh -c 'for bin in /opt/jdk-12.0.1/bin/*; do update-alternatives --set $(basename $bin) $bin; done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment