mac java环境配置

https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.

下载 jdk-8u251-macosx-x64.dmg 

环境变量

#JAVA

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home

export PATH=$JAVA_HOME/bin:$PATH

export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

mac

相关推荐