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

后端 未结 5 631
陌清茗
陌清茗 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 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

提交回复
热议问题