Shell/Bash: set default java version Example

By

Shell/Bash Example: This is the "set default java version" Example. compiled from many sources on the internet by SimpleTutorials.org

set default java version

# on linux
sudo update-alternatives --config java
# then just input the number of the jdk you
# want to use as default and hit Enter

change java version

/usr/libexec/java_home -V  
export JAVA_HOME=`/usr/libexec/java_home -v 1.6.0_65-b14-462` //java 8



* Summary: This "set default java version" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others