export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home
export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:
export PATH=$JAVA_HOME/bin:$PATH:
mac电脑安装jdkjdk的官方下载地址如下:https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html...