参考:http://blog.csdn.net/xiejx618/article/details/17094791
修改:/Library/Java/JavaVirtualMachines/安装的JDK/Contents/Info.plist
更改
1 <key>JVMCapabilities</key> 2 <array> 3 <string>CommandLine</string> 删除,更改为下面内容 4 <string>JNI</string> 5 <string>BundledApp</string> 6 <string>WebStart</string> 7 <string>Applets</string> 8 <string>CommandLine</string> 9 </array>
修改:sudo vi /Applications/IntelliJ IDEA 14.app/Contents/Info.plist
更改
1 <key>JVMVersion</key> 2 <string>1.6*</string> 删除,更改为下面内容 3 <string>1.8*</string>