jdk 多版本切换
# jdk
export JAVA_11_HOME=$(/usr/libexec/java_home -v 11)
export JAVA_17_HOME=$(/usr/libexec/java_home -v 17)
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
export JAVA_HOME=$JAVA_11_HOME
export JRE_HOME
export PATH
export CLASSPATH
alias jdk11="export JAVA_HOME=$(/usr/libexec/java_home -v 11)"
alias jdk17="export JAVA_HOME=$(/usr/libexec/java_home -v 17)"