# MacOS

Java下载
------
<pre>
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html

macOS x64 | jdk-8u261-macosx-x64.dmg
</pre>

Java安装
------
<pre>
双击，下一步...
</pre>

查看JavaHome目录
------
<pre>
/usr/libexec/java_home -V
</pre>

Java环境变量
------
<pre>
sudo vim /etc/profile

export JAVA_HOME=JavaHome目录
export JRE_HOME=${JAVA_HOME}/jre
export PATH=$PATH:${JAVA_HOME}/bin:${JRE_HOME}/bin
export CLASSPATH=.:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar:${JRE_HOME}/lib

source /etc/profile
</pre>

Maven
------
<pre>
http://maven.apache.org/download.cgi

下载 Binary zip archive | apache-maven-3.6.3-bin.zip

解压
</pre>

Maven环境变量
------
<pre>
sudo vim ~/.bash_profile

export MVN_HOME=Zip解压目录/apache-maven-{版本}
export PATH=$PATH:${MVN_HOME}/bin

source ~/.bash_profile
</pre>
