Last active
June 1, 2021 07:14
-
-
Save bitristan/3f3955b1fc6e29fcb215706a3e7ea5b7 to your computer and use it in GitHub Desktop.
Add jdk version
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
1 #!/bin/bash | |
2 | |
3 sudo update-alternatives --install /usr/bin/java java /home/sunting/tools/jdk1.8.0/bin/java 1070 | |
4 sudo update-alternatives --install /usr/bin/javac javac /home/sunting/tools/jdk1.8.0/bin/javac 1070 | |
5 sudo update-alternatives --install /usr/bin/jar jar /home/sunting/tools/jdk1.8.0/bin/jar 1070 | |
6 sudo update-alternatives --install /usr/bin/javah javah /home/sunting/tools/jdk1.8.0/bin/javah 1070 | |
7 sudo update-alternatives --install /usr/bin/javap javap /home/sunting/tools/jdk1.8.0/bin/javap 1070 |
sudo update-alternatives --config java_home
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo update-alternatives --config java