OSX 10.10 and Eclipse Luna. Own App crashes when started from inside Eclipse

后端 未结 5 605
陌清茗
陌清茗 2021-01-11 11:18

I have updated to Yosemite today and have much problems with java. Most java applications crashes on start but after reinstall of the old Mac-Java 1.6 that problem seems to

相关标签:
5条回答
  • 2021-01-11 11:50

    This fix worked for me:

    Open your /Applications/{YOUR_IDEA}/Contents/Info.plist file and point to a newer java by changing

    <key>JVMVersion</key>
    <string>1.6*</string>
    

    to

    <key>JVMVersion</key>
    <string>1.7+</string>
    
    0 讨论(0)
  • 2021-01-11 11:53

    I had the same issue. Reinstall java from http://support.apple.com/kb/DL1572

    It worked for me after that.

    0 讨论(0)
  • 2021-01-11 12:05

    When my mac crashed and was replaced (keeping the hard drive) my Eclipse had a couple issue to work out. Among them was some of my projects were referring to 1.6 when in fact I had updated to 1.7 and the project needed to refresh this setting.

    Right click project->properties->Java Build Path->Libraries->Add Library->JRE System Library

    The System will find the installed JRE and make it the default. Remove the old JRE and run the application.

    0 讨论(0)
  • 2021-01-11 12:06

    for future users: i faced this issue on netbeans and webstorm. As other said

    1. update jdk to http://support.apple.com/kb/DL1572
    2. and update "~/.bash_profile" file to point to new(updated!) jdk 6 location, by adding (modifying existing) following:
    export PATH=$PATH:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin
    export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
    

    Extra note for netbean users: make sure "/Applications/NetBeans/NetBeans 7.3.1.app/Contents/Resources/NetBeans/etc/netbeans.conf" file points to right jdk home if you have previously overriden it:

    netbeans_jdkhome="/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home"

    0 讨论(0)
  • 2021-01-11 12:08

    After I re-installed using http://support.apple.com/kb/DL1572 I had two JDK 1.6 versions in the system.

    1. /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/
    2. /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/ (1.6.0_65-b14-466.1)

    1 (-462) was used by Eclipse. It gave the same error as you have.

    2 (-466) was used from command line. That one worked.

    So I changed the "Installed JREs" in the Eclipse preferences so it pointed to number 2 (-466). After that everything worked fine.

    /Martin

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