我安装了Eclipse Kepler,并将其用于monthes,安装了JDK 7u65。我最近尝试安装失败的JDK 7u67(不知道为什么)。尝试安装JRE 7u67时也是如此。然后我删除了JDK 7u67的文件夹。
在启动时,Eclipse告诉我以下内容:
为了解决这个问题,我尝试调整我的eclipse.ini(刚刚添加了-vm arg及其值):
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home/jre/bin/java
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms512m
-Xmx1536m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
结果,Eclipse就崩溃了。以下是崩溃日志的摘录。
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff96474017 CFBundleGetFunctionPointerForName + 39
1 eclipse_1508.so 0x00000001000e283a findSymbol + 66
2 eclipse_1508.so 0x00000001000e09b0 startJavaJNI + 206
3 eclipse_1508.so 0x00000001000dfd6f startJavaVM + 9
4 eclipse_1508.so 0x00000001000de2f9 _run + 4611
5 eclipse_1508.so 0x00000001000dece2 run + 434
6 org.eclipse.platform.ide 0x00000001000018e3 original_main + 1809
7 org.eclipse.platform.ide 0x0000000100001eb5 main + 1230
8 org.eclipse.platform.ide 0x0000000100001090 start + 52
为了确定,我尝试安装另一个Eclipse(Luna),但结果是一样的。有什么想法吗?
编辑:这是我的机器上定义的一些环境变量:
PATH=/opt/local/bin:/opt/local/sbin:/Users/remidoolaeghe/Developper/apache-maven-3.0.4/bin:/Library/glassfish3/glassfish/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home