Answers for "changing default version of java"

1

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
Posted by: Guest on May-14-2020
2

change java version

/usr/libexec/java_home -V  
export JAVA_HOME=`/usr/libexec/java_home -v 1.6.0_65-b14-462` //java 8
Posted by: Guest on October-21-2020

Code answers related to "changing default version of java"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language