How do I run Eclipse using Oracle's new 1.7 JDK for the Mac?

前端 未结 15 2109
执笔经年
执笔经年 2020-11-28 22:47

I\'m trying to get the new 1.7 JDK working with Eclipse (this is Oracle\'s official release).

I don\'t mean just pointing Eclipse to it so you can use it in projects

相关标签:
15条回答
  • 2020-11-28 23:32

    For me it worked fix proposed in https://bugs.eclipse.org/bugs/show_bug.cgi?id=411361#c25 :

    #!/bin/bash
    
    # Workaround for https://bugs.eclipse.org/411361
    # "[Mac] Kepler doesn't launch without JRE 6, even if JDK 7 is installed"
    #
    # Put this launch.command into the same folder as Eclipse.app.
    #
    # If necessary, adapt JAVA_EXECUTABLE to the full path to your Java executable:
    
    JAVA_EXECUTABLE=java
    
    cd "$(dirname "$0")"
    
    $JAVA_EXECUTABLE \
    -Djava.library.path="$(echo plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_*/eclipse_*.so)" \
    -Xms512m \
    -Xmx2048m \
    -Xdock:icon=Eclipse.app/Contents/Resources/Eclipse.icns \
    -XstartOnFirstThread \
    -Dorg.eclipse.swt.internal.carbon.smallFonts \
    -XX:MaxPermSize=256m \
    -jar "$(echo plugins/org.eclipse.equinox.launcher_*.jar)"  \
    -os macosx \
    -ws cocoa \
    -arch x86_64 \
    -showsplash \
    -name Eclipse \
    --launcher.appendVmargs \
    -debug \
    -showlocation \
    -consolelog
    
    0 讨论(0)
  • 2020-11-28 23:36

    simple solution. on another thread on here. download Java from apple.com instead of Oracle. It completely fixed the problem, and now opens with a double click, no terminal or programming required.

    0 讨论(0)
  • 2020-11-28 23:39

    I just had this problem. I fixed it by downgrading and downloading JDK 7.

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