4

我刚刚从 4.2 迁移到 4.3(开普勒)。我正在研究 Eclipse RCP(OSGi 框架),它在 4.2 上运行良好,但是一旦我搬到 Kepler - 在启动时开始出现下面提到的错误。任何形式的帮助表示赞赏。

java.lang.RuntimeException: Application "org.eclipse.e4.ui.workbench.swt.E4Application" could not be found in the registry. The applications available are: org.eclipse.equinox.app.error.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
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:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
4

3 回答 3

1

试试这个:打开 *.product 文件,然后在依赖项选项卡上选中“计算所需库时包含可选依赖项”。

于 2013-09-28T17:51:19.687 回答
0

确保使用默认目标:

Preferences -> Target Platform 
And check the "Running Platform (Active)"
于 2017-11-27T14:00:46.007 回答
0

转到工作区文件夹 -> .metadata ->.plugins 查找与您在错误中看到的名称匹配的文件夹,在本例中为 - org.eclipse.e4.*

删除此文件夹并重新启动 Eclipse。现在应该可以正常打开了。

于 2019-12-25T15:04:52.600 回答