windows下:
SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111
SET CLASSPATH=%JAVA_HOME%\lib
SET Path=%JAVA_HOME%\bin
git bash下:
export JAVA_HOME='/C/Program Files/Java/jdk1.8.0_111'
export CLASSPATH=$JAVA_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin
https://www.digitalocean.com/community/tutorials/how-to-read-and-set-environmental-and-shell-variables-on-a-linux-vps
https://askubuntu.com/questions/205688/whats-the-difference-between-set-export-and-env-and-when-should-i-use-each
https://help.ubuntu.com/community/EnvironmentVariables
http://blog.csdn.net/longxibendi/article/details/6125075
网友评论