Mac os X 10.9.2
ADT
python 2.7.5
java1.7.60
Java1.7 for mac 下载链接
查询当前版本
$java -version
运行指定版本的命令
$/usr/libexec/java_home -v 1.7.0_06 --exec java -version
如果配置了环境变量JAVA_HOME=‘/usr/libexec/java_home -v 1.7’
$JAVAHOME --exec java -version
apple java 的位置/System/Library/Java/JavaVirtulMachines/1.6...
java 1.7的位置/Library/Java/JavaVirtulMachines/1.7...
$which java
/usr/bin/java
$ls -l /usr/bin/java
/System/Library/FrameWorks/JavaVM.framework/Versions/Current/Commands/java
Current指向A,A里面是当前版本的copy
注意CurrentJDK指向1.6
sudo rm -rf /Library/Java/JavaVirtulMachines/1.7…
同时sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/
eclipse的python插件PyDev
安装PyDev需要java 1.7,不然安装之后PyDev无显示
eclipse Preferences->Java->Compiler 选择1.7
Preferences->Java->Installed JREs add "MacOS X VM",路径设置成java1.7的路径/Library/Java/JavaVirtulMachines/1.7.../Home
eclipse的pydev站点链接
http://pydev.org/updates