我刚刚使用 Migration Assistant 将我的东西移动到新的 mac,现在当我启动 Eclipse 时,我收到一个弹出窗口,告诉我查看:
~/.eclipse/org.eclipse.platform_3.7.0_564163029/configuration/1343925478439.log
其中包含:
!SESSION 2012-08-02 12:37:58.263 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_33
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/Me/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/Me/.eclipse_keyring -showlocation
!ENTRY org.eclipse.osgi 4 0 2012-08-02 12:37:58.630
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
我发现了这个问题:并尝试将以下内容添加到/Applications/eclipse-indigo/Eclipse.app/Contents/MacOS/eclipse.ini:
-Dosgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@
但它仍然没有工作。我还尝试使用 -clean 选项从命令行运行 eclipse:
/Applications/eclipse-indigo/eclipse -clean
还有其他想法吗?