MAC JAVA 环境变量那些事
1,查看 JAVA 的版本号
akdeMacBook-Pro:bin AK$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
2,切换不同 JAVA 版本号
1)cd /usr/bin/
2)ls -l java
lrwxr-xr-x 1 root wheel 74 3 13 11:47 java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java