change java version command line debian
sudo update-alternatives --config java
change java version command line debian
sudo update-alternatives --config java
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 default java version mac
nano ~/.zshrc
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8.0)
change java version
/usr/libexec/java_home -V
export JAVA_HOME=`/usr/libexec/java_home -v 1.6.0_65-b14-462` //java 8
changer version java terminal
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us