javac -version
/usr/libexec/java_home -V
vi ~/.zshrc
export JAVA_HOME=$(/usr/libexec/java_home) export PATH="$JAVA_HOME:$PATH"
exec zsh
echo $JAVA_HOME
to verify your change.
No comments:
Post a Comment