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

前端 未结 7 2084
终归单人心
终归单人心 2021-01-30 12:57

Just installed a fresh version of Kepler 64bit \"for Java Developers\" on Yosemite, getting this error on first launch. Any thoughts on how to fix? Really do not want to downgra

相关标签:
7条回答
  • 2021-01-30 13:16

    tldr; This error may indicate you don't have Java, and you can fix by installing the latest version of Java instead of the "legacy" version


    I received this error while installing Eclipse on a fresh MacBook with macOS Sierra, version 10.12.3, which apparently does not have ANY java installed. I made the problem go away by installing java version 1.8 JDK and then had no trouble installing Eclipse after.

    i.e. before installing

    MacBook-Pro:$ java -version
    No Java runtime present, requesting install.
    

    and after installing

    MacBook-Pro:$ java -version
    java version "1.8.0_121"
    Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
    
    0 讨论(0)
  • 2021-01-30 13:18

    I had JDK 7 installed on Yosemite, and upgrading Eclipse to Luna fixed this issue for me

    0 讨论(0)
  • 2021-01-30 13:19

    I was facing this trouble for hours. I followed every suggestion I could find over numerous forums with no success. I resolved the issue by simply installing 1.8.x JDK instead of the JRE, despite having no intension to develop for Java. I guess eclipse requires this.

    0 讨论(0)
  • 2021-01-30 13:22

    I ended up relenting and downloading Java 6 from here:

    http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US

    Apparently this seems to coexist ok with the latest Java version which I also installed (version 8 update 25) and version 8 shows up as the version I'm running when I verify from

    https://www.java.com/en/download/installed.jsp

    I'm unclear on the security implications of this though, would have preferred another solution, if anyone finds a better solution than installing 6 please let me know.

    0 讨论(0)
  • 2021-01-30 13:28

    For me this worked :

    Edit /Applications/mat.app/Contents/Info.plist

    And at he bottom where the to use a specific Java version section start you reference the libjli.dylib like so

    <string>-vm</string><string>/Users/jkuperus/.sdkman/candidates/java/11.0.2-open//lib/jli/libjli.dylib</string>
    
    0 讨论(0)
  • 2021-01-30 13:29

    My Mac crashed and after the restart I had the same issue. Turned out that for some reason the file /usr/libexec/java_home was missing. After symlinking it to /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java_home, Eclipse now starts without any complains.

    0 讨论(0)
提交回复
热议问题