场景:
1.这里只介绍环境配置和Windows的不同点,更新android SDK都是一样的。
2.也是安装eclipse 3.7.2
3.安装Jdk-7后还是无法启动,提示 to open eclipse, you need a Java SE 6 runtimes.
java -version java version "1.7.0_67" Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
apples-MacBook-Pro:software apple$ which java /usr/bin/java5. 使用Finder Go to Folder /user/bin
apples-MacBook-Pro:software apple$ /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java_home /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home8. 进入这个目录的上级目录.
/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/9. 修改Info.plist文件,在对应的JVMCapabilities地方增加几行,保存.
<key>JVMCapabilities</key> <array> <string>JNI</string> <string>BundledApp</string> <string>WebStart</string> <string>CommandLine</string> </array>
<string>-vm</string> <string>/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/server/libjvm.dylib</string>
-vm /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/server/libjvm.dylib
增加
203.208.48.134 dl-ssl.google.com