Answers for "ubuntu set default java"

3

ubuntu change default java path

sudo update-alternatives --config java
Posted by: Guest on June-13-2020
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

linux change java

sudo update-java-alternatives -s java-8-oracle
export JAVA_HOME=/usr/lib/jvm/java-8-oracle/
export PATH=$PATH:$JAVA_HOME
123
Posted by: Guest on June-29-2020

Code answers related to "ubuntu set default java"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language