Eclipse on Mac 10.8 - Installed 1.7.0 JRE / JDK, but Eclipse won't launch

后端 未结 18 1005
深忆病人
深忆病人 2020-12-14 16:53
  • Installed Java SE 1.7.0u10 from Oracle w/ their installer package

  • Downloaded and unpacked Eclipse Juno (4.2.1)

  • Double click Eclipse

18条回答
  •  旧巷少年郎
    2020-12-14 17:05

    1. Install latest JDK from Sun, it installs into /Library/Java/JavaVirtualMachines/, e.g. /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk

    2. sudo mkdir /System/Library/Java/JavaVirtualMachines

    3. sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/ /System/Library/Java/JavaVirtualMachines/1.6.0.jdk

    ========= this trick used to work on Mountain Lion, but not on Maverick 10.9 somehow ============

    Tried this again on Maverick, it does not work anymore. I also tried to change eclipse app plist and eclipse.ini (by adding -vm or ), does not work either.

    Some people suggested that this is caused by Eclipse binary prepared using Apple 1.6 appbundler instead of Oracle java7 appbundler: Application is using Java 6 from Apple instead of Java 7 from Oracle on Mac OS X?

    For now, please just type the eclipse from command line, which works fine with JAVA_HOME set to Java 7 (/usr/libexec/java_home command will tell you)

提交回复
热议问题