Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
迁移到新mac后Eclipse未启动_Eclipse_Macos_Migration - Fatal编程技术网

迁移到新mac后Eclipse未启动

迁移到新mac后Eclipse未启动,eclipse,macos,migration,Eclipse,Macos,Migration,我刚刚使用迁移助手将我的东西移动到一台新的mac电脑上,现在当我启动Eclipse时,我得到一个弹出窗口,告诉我要查看: ~/.eclipse/org.eclipse.platform_3.7.0_564163029/configuration/1343925478439.log 其中包括: !SESSION 2012-08-02 12:37:58.263 ----------------------------------------------- eclipse.buildId=unkno

我刚刚使用迁移助手将我的东西移动到一台新的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

还有其他想法吗

我不知道错误是什么,但由于安装Eclipse只需提取归档文件,因此我从未尝试将Eclipse安装迁移到新机器上。我只是复制我的工作区,安装Eclipse fresh,然后运行。

我也有同样的问题(Eclipse helios),我将我的旧系统与新系统进行了比较,由于某种原因,/Application/Eclipse/configuration文件夹非常不同

新机器的配置文件夹中只有org.eclipse.osgi,而旧机器的配置文件夹中只有org.eclipse.core.runtime、org.eclipse.core.simpleconfigurator、org.eclipse.core.source、org.eclipse.osgi、org.eclipse.ui.intro.universal、org.eclipse.core.update

我用旧的配置文件夹替换了新的配置文件夹,它启动了它。但还是不一样。。。我注意到的两件事是eclipse市场和我所有的maven构建都消失了


最后,我刚刚将Application/eclipse文件夹从旧装备复制到了新装备,它工作得很好。

转到旧mac,在/Applications下找到eclipse文件夹。然后将“configuration”文件夹复制到新的Mac上,并将损坏的配置文件夹替换到同一路径上,也在/Applications/eclipse中。发生这种情况是因为OS X Migration Assistant错误地认为配置文件是与新计算机不兼容的应用程序。

总结一下:只需将eclipse文件夹从应用程序从源计算机复制到目标计算机。