我的mac os 版本是10.11.4, JDK配置得好好的,但打开eclipse时还是提示需要安装JRE 6。解决方法如下:
打开/Library/Java/JavaVirtualMachines/jdkXXXXX.jdk/Contents/Info.plist 按照如下配置,
把配置从
<key>JVMCapabilities</key>
<array>
<string>CommandLine</string>
</array>
改成:
<key>JVMCapabilities</key>
<array>
<string>JNI</string>
<string>BundledApp</string>
<string>WebStart</string>
<string>Applets</string>
<string>CommandLine</string>
</array>
保存,重启计算机,一切OK!