個人mac os 版本是10.11.4, JDK配置得好好的,但打開eclipse時仍是提示須要安裝JRE 6。解決方法以下:eclipse
打開/Library/Java/JavaVirtualMachines/jdkXXXXX.jdk/Contents/Info.plist 按照以下配置,ip
把配置從string
<key>JVMCapabilities</key>
<array>it
<string>CommandLine</string>
</array>cli
改爲:jdk
<key>JVMCapabilities</key>
<array>
<string>JNI</string>
<string>BundledApp</string>
<string>WebStart</string>
<string>Applets</string>
<string>CommandLine</string>
</array>配置
保存,重啓計算機,一切OK!方法