JDK、Maven环境变量配置
Windows
jdk
JAVA_HOME D:\Program Files\Java\jdk1.8.0_91
CLASSPATH .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
Path %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
maven
MAVEN_HOME D:\Program Files\apache-maven-3.3.9
Path %MAVEN_HOME%\bin
Linux
jdk
修改/etc/profile
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_77
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
maven
export PATH=/usr/lib/apache-maven-3.3.9/bin:$PATH