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

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

    posted on this page: Mountain Lion with Java 7 only

    To trick OS X to accept Java 7 instead of proposing to install Java 6 a simple symlink is enough:

    sudo mkdir /System/Library/Java/JavaVirtualMachines

    sudo ln -s /Library/Java/JavaVirtualMachines/1.7.0.jdk /System/Library/Java/JavaVirtualMachines/1.6.0.jdk

    Most Java Programs will run with this little hack without the need to install Java 6. OS X's Java Preferences (and maybe some others) will not as it seems to explicitly check the version of the JVM when it is started.

    script above can fix my problem.

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

    How to Make Eclipse Run on OS X 10.9 Mavericks

    Attempting to launch various Eclipse versions after the Mavericks upgrade pops up a dialog with this message:

    To open "Eclipse.app" you need a Java SE 6 runtime. Would you like to install one now?

    enter image description here

    It turns out that Java 7 is disabled by default in OS X 10.9.
    This is easily verified as follows:

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

    The solution is to install the latest supported Java version from Apple support: Java for OS X 2013-005 (http://support.apple.com/kb/DL1572)
    As of 10/15/13 this would be Java SE 6 1.6.0_65.
    Post Date: Oct 15, 2013
    File Size: 63.98 MB

    After the install, Eclipse will run as expected from the Dock, the Finder, or the Terminal without any tricks, hacks, or work-arounds.

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

    I had JDK 7 installed and I solved this issue for eclipse Kepler by running eclipse from the terminal instead of the finder.

    ./eclipse
    

    Just thought to share.

    Update 1

    For the sake of completeness, if you want to run it from Finder as well, you can wrap the ./eclipse command into a .command file and run it from Finder (so that you don't have to open a terminal)

    The following lines should do the job (don't forget to replace "your-full-eclipse-path" with the eclipse path on your machine)

    #!/bin/sh
    /your-full-eclipse-path/eclipse
    

    After that, give execute permission to the eclipse.command file you just created

    chmod +x eclipse.command
    
    0 讨论(0)
  • 2020-12-14 17:17

    I wanted to run Eclipse itself with Java 7. As I have a couple of plugins that do not work without it. For me neither solution worked for 10.9, but I found a workaround. The main idea is that you start eclipse with java -jar launcher.jar and provide a couple of magic properties and then it starts. This guy provided the command line script in comments that works for me:

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=411361#c25

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

    I found the same problem (Mac OS X 10.9.2, Java 1.7.0_53b13, Eclipse Kepler). The workaround was quite easy:

    1. Find the executable in Finder (CMD+Click on Eclipse's icon in the Dock)
    2. Remove the icon from the Dock
    3. CTRL+Click on the executable in Finder
    4. ALT+Open (to allow the execution of a non-signed application)
    5. Eclipse opens normally and without any problem
    6. Re-dragged the program onto the Dock
    0 讨论(0)
  • 2020-12-14 17:21

    I had same problem.

    First of all ; JDK(java development Kit) and JRE(Java Runtime Environment) are different things. It was confused by people

    In order to install eclipse yo should install latest JDK . So

    1. Visit http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

    2. Download suitable version for your mac

    3. You can check your version now ; it won't be 1.6 anymore

    4. Try to install eclipse again , see it works.

    Good luck!..

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