简体   繁体   English

导出E4应用程序

[英]Exporting an E4 Application

I have a feature based E4 application that I'd like to export as an executable project (.exe since I'm under windows). 我有一个基于功能的E4应用程序,我想将其导出为可执行项目(因为我在Windows下,所以是.exe)。

I'm following the automated procedure called "Export Project Wizard" but despite I'm getting a .exe file + some JAR's in the same export folder, when I run it I get this error message: "org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError com/test/test1" 我正在执行称为“导出项目向导”的自动化过程,但是尽管我在同一个导出文件夹中获得了一个.exe文件和一些JAR,但在运行该程序时却收到以下错误消息:“ org.eclipse.e4.core .di.InjectionException:java.lang.NoClassDefFoundError com / test / test1“

com.test.test1 is an external plugin which I included in the depedency tab, and it seems that Eclipse won't find it. com.test.test1是一个外部插件,我已将其包含在depedency选项卡中,看来Eclipse找不到它。

How can I work it out? 我该如何解决? Should it not automatically export all the required plugins? 是否应该不自动导出所有必需的插件?

I also tried to export that plugin manually, as JAR, but it didn't work. 我还尝试将插件手动导出为JAR,但没有用。

Thanks 谢谢

Use 'Export > Plug-in Development > Eclipse product'. 使用“导出>插件开发> Eclipse产品”。 This will require you to specify the xxx.product file that was created when you created your e4 application. 这将要求您指定在创建e4应用程序时创建的xxx.product文件。

You can also launch the same wizard from the xxx.product editor by clicking 'Use the Eclipse product export wizard'. 您也可以通过单击“使用Eclipse产品导出向导”从xxx.product编辑器中启动相同的向导。

You must configure your xxx.product file to specify all the features that you are using - your own features and the standard Eclipse features (on the Dependencies tab). 您必须配置xxx.product文件以指定正在使用的所有功能-您自己的功能和标准Eclipse功能(在“依赖关系”选项卡上)。 For example on my product I have: 例如,在我的产品上,我有:

my feature
org.eclipse.e4.rcp
org.eclipse.emf.common
org.eclipse.emf.ecore

the 3 Eclipse features are the minimum needed for an e4 application. 3个Eclipse功能是e4应用程序所需的最低要求。

Your feature must list all your plugins in its feature.xml plus any dependencies that are not covered in any other feature. 您的功能必须在其feature.xml列出所有插件,以及任何其他功能未涵盖的任何依赖项。 Every plugin you want to use must appear in one of the features. 您要使用的每个插件都必须出现在其中一项功能中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM