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

后端 未结 18 980
深忆病人
深忆病人 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:22

    Hoping you are using 64-bit of Java SE 1.7.0 and so advising the following.

    1. go to Eclipse->Preferences...->Java->Installed JREs
    2. click Add...
    3. Select Standard VM
    4. paste /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home into JRE home
    5. Change the JRE name to something useful like Java SE 7
    6. Click Finish
    7. Check the check-box next to your newly created JRE.

    You would need a restart.

    0 讨论(0)
  • 2020-12-14 17:22

    open /Library/Java/JavaVirtualMachines/jdkXXXXX.jdk/Contents/Info.plist

    settting(<string>BundledApp</string> is usefull!):

    <key>JVMCapabilities</key>
    <array>
      <string>JNI</string>
      <string>BundledApp</string>
      <string>WebStart</string>
      <string>Applets</string>
      <string>CommandLine</string>
    </array>
    
    0 讨论(0)
  • 2020-12-14 17:24

    If you'd like to install Java 6 JDK only (no Java 7 JDK/JRE, no Java 6 JRE only), install the Apple OSX Java DMG (at time of writing, this was http://adcdownload.apple.com/Developer_Tools/java_for_os_x_2013003_developer_package/java_for_os_x_2013003_dp__11m4406.dmg).

    You still won't be able to start Eclipse. Make a directory JavaVirtualMachines under /System/Library/Java. And then make an Alias of the java version folder at /Library/Java/JavaVirtualMachines and rename the alias 1.6.0.jdk and copy that alias to /System/Library/Java/JavaVirtualMachines/

    After finished, you will have an Alias at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk that points to the Java install directory at */Library/Java/JavaVirtualMachines/1.6.0_XX-XXX-XXX.jdk*

    0 讨论(0)
  • 2020-12-14 17:28

    I had this problem and found that I did not have JDK installed on my Mac. Once I did that, Eclipse starts normally.

    0 讨论(0)
  • 2020-12-14 17:30

    I had the exact same message when setting up a new mac and trying to run eclipse 4.2.2 with only Java SE 7 installed (as part of JDK 7u17).

    In order to be able to successfully launch Eclipse I had to let OSX download and install Apple's Java SE 6 runtime first before installing the latest JDK.

    After installing the JDK, the command java -version correctly shows:

    java version "1.7.0_17"
    Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
    Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
    

    Trying to solve the problem the other way around didn't work -- i.e. installing JDK 7u17 first before installing Java SE 6 as suggested in the message.

    0 讨论(0)
  • 2020-12-14 17:30

    I had the exactly same problem some days ago and I solved it today. Just installed this http://support.apple.com/kb/dl1572

    And after that, when I opened the eclipse the OSX installed some java update and opening eclipse by Eclipse.app started working.

    Hope it works with you too.

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