运行eclipse RCP应用程序后,“找不到应用程序ID”

时间:2016-08-10 08:06:09

标签: java eclipse eclipse-rcp

我正在将一个RCP应用程序从eclipse 3(Indigo)迁移到eclipse 4(Mars)。 我已经解决了所有与依赖项相关的问题。但是我无法使用“启动eclipse应用程序”启动产品文件。

错误是:

java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)

如果我去Run - >运行配置 - >添加所需的插件并从那里运行应用程序。该应用程序运行。

任何人都可以告诉我在点击“添加所需插件”按钮(AFAIK它即时选择这些插件)时,这些新添加的插件的设置或条目存储在哪里?因为从“启动eclipse应用程序”再次运行应用程序后。它没有开始。我犯了同样的错误。如何为下一次构建保留新添加的插件列表(来自“启动eclipse应用程序”)

1 个答案:

答案 0 :(得分:0)

即使在运行配置中添加了所需的插件后,我也遇到了同样的非持久插件问题。

用户Dan Nick在此处获得了解决方法:https://stackoverflow.com/a/16011871/5005462

基本上,似乎还需要在产品依赖项选项卡上添加必需的插件。一旦我这样做,然后点击"启动一个Eclipse应用程序"从产品概述选项卡,应用程序成功启动。