简体   繁体   English

将 Eclipse RCP 应用程序导出到可运行的 jar 文件

[英]Export Eclipse RCP application to runnable jar file

I have a Eclipse RCP 3 application and need to create a runnable jar from it.我有一个 Eclipse RCP 3 应用程序,需要从中创建一个可运行的 jar。 When I use the export feature in the plugin.xml file it creates a single jar file in a plugin folder.当我在 plugin.xml 文件中使用导出功能时,它会在插件文件夹中创建一个 jar 文件。 Is it possible to generate a executable jar file from the Eclipse RCP 3 application?是否可以从 Eclipse RCP 3 应用程序生成可执行的 jar 文件? A jar file that can be run outside of Eclipse EDI.可以在 Eclipse EDI 之外运行的 jar 文件。

Eclipse RCP 导出功能

An Eclipse RCP is an executable file plus many plugins and features. Eclipse RCP 是一个可执行文件加上许多插件和功能。 Eclipse itself is an Eclipse RCP, all RCPs have the same format as Eclipse. Eclipse 本身是一个 Eclipse RCP,所有 RCP 都具有与 Eclipse 相同的格式。

If you have an xxx.product file for your RCP use the 'Eclipse product export wizard' link on the first page of the product editor.如果您的 RCP 有 xxx.product 文件,请使用产品编辑器第一页上的“Eclipse 产品导出向导”链接。 Otherwise use 'File > Export > Plug-in Development > Eclipse product'.否则使用“文件 > 导出 > 插件开发 > Eclipse 产品”。

It is not possible to create a single executable jar for an RCP.无法为 RCP 创建单个可执行 jar。

Update: The 'File > Export > Plug-in Development > Eclipse product' method of producing a product is now deprecated.更新:现在不推荐使用“文件 > 导出 > 插件开发 > Eclipse 产品”生产产品的方法。 The official method now is to use Eclipse Tycho and Maven .现在官方的方法是使用 Eclipse Tycho 和 Maven

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

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