简体   繁体   中英

eclipse needs legacy Java SE 6

I updated my mac to Yosemite 10.10. Now it gives me this error:

To open “Eclipse.app” you need to install the legacy Java SE 6 runtime.

What should I do?

Java JDK 1.6 is not installed on your computer.

You probably installed Java JDK 1.7 or 1.8 before the Yosemite update.

If you don't want to install JRE6 at all and simply use JRE7 or JRE8 without symlinking it to the JRE6 either you can do the following solution as described by Nikolas Grottendieck here .

We don't need to install JDK1.6. I am repeating my answer to a similar question .

edit Info.plist file, in your jdk, for example:

/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Info.plist

update JVMCapabilities dictionary to have following values:

          <key>JVMCapabilities</key>
            <array>
                    <string>CommandLine</string>
                    <string>JNI</string>
                    <string>BundledApp</string>
                    <string>WebStart</string>
                    <string>Applets</string>
            </array>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM