Answers for "switching between Java 8 and 11"

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
0

changer version java terminal

export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
Posted by: Guest on December-04-2020

Code answers related to "switching between Java 8 and 11"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language