【问题标题】:Exporting a product (on top of Eclipse e4) and trying to launch the same leaves behind a error stating that come Bundles could not be resolved导出产品(在 Eclipse e4 之上)并尝试启动相同的产品会留下一个错误,指出无法解析来的 Bundles
【发布时间】:2015-12-05 12:18:31
【问题描述】:

我创建了一个示例 e4 项目,其中包含一个插件,该插件由 plugin.xml 文件、fragment.e4xmi 文件、.product 文件和一个 .Java 处理程序类组成,该处理程序类将负责在我自定义后立即显示消息对话框菜单被点击。

通过此设置,我可以在调试模式下启动产品(并且我可以看到我的自定义菜单),而我无法启动导出的产品。当我尝试这样做时出现以下错误:

java.lang.RuntimeException: Application "org.eclipse.e4.ui.workbench.swt.E4Application" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, 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: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:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

有什么办法解决这些???

【问题讨论】:

    标签: eclipse eclipse-rcp e4 eclipse-emf emf


    【解决方案1】:

    如果您使用基于插件的构建,您的 .product 文件的依赖项页面必须列出所需的每个插件。该页面上的“添加必需”按钮可能会有所帮助。

    对于基于功能的构建,依赖项页面必须列出包含所有必需插件的功能。

    【讨论】:

    • 我尝试在“添加所需插件”按钮的帮助下包含所有必需的插件。除以下异常外,所有异常均已清除:java.lang.RuntimeException:在注册表中找不到应用程序“org.eclipse.e4.ui.workbench.swt.E4Application”。可用的应用程序有:org.eclipse.ant.core.antRunner、org.eclipse.equinox.app.error。在 org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248) 在 org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
    • 我已经编辑了我的问题以反映我最终得到的异常(即,在对 .product 文件执行“添加所需插件”之后)
    • E4Application 位于 org.eclipse.e4.ui.workbench.swt 中,将其添加到依赖项中(然后再次添加必需项)。
    • greg-449 :我将插件 'org.eclipse.e4.ui.workbench.swt' 作为依赖项添加到 .product 文件中,将此插件作为依赖项添加后,然后添加 'Add Required插件”。我仍然能够看到错误,现在我的异常计数已经增加:) 以前它只是一个,但是这样做之后我的问题恢复到以前的状态:) (即,异常堆栈跟踪现在变得类似于我编辑之前的那个)
    • 这个link 描述了一个类似的问题。但是我的产品文件已经包含了这些..
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-12-11
    • 2014-12-09
    • 2016-04-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-10
    相关资源
    最近更新 更多