Shell/Bash: how to change java version in linux Example

By

Shell/Bash Example: This is the "how to change java version in linux" Example. compiled from many sources on the internet by SimpleTutorials.org

how to change java version in linux

$ sudo update-alternatives --config java

change java version command line debian

sudo update-alternatives --config java

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

how to find java version linux

java -version


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

Others