如何导出多个平台的eclipse 4应用程序 [英] How can I export an eclipse 4 application for multiple platforms

查看:217
本文介绍了如何导出多个平台的eclipse 4应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何导出eclipse 4应用程序,以便它可以运行在 Windows Linux ? >
我看到产品配置有所有平台的标签:

How can I export an eclipse 4 application so that it can run in either Windows or Linux?
I see that the product configuration has tabs for all platforms:

但是当我导出时,我在 repository \binary 一个名称为 product_root.win32.win32.x86_64 的产品,表示它是根据我的开发机器构建的,它是 Windows 7 / 64bit

为了将应用程序导出到Linux中,导出必须在Linux机器上完成?

Ie我必须在Linux运行的eclipse中导入我的项目文件,然后导出?

but when I export I see in the repository\binary a product with name product_root.win32.win32.x86_64 which indicates that it builds according to my development machine which is Windows 7/64bit.
So to export the application to run in Linux the export must be done in a Linux machine?
I.e. I have to import my project files in an eclipse running in Linux and then do export?

更新1:

遵循@Baz建议我安装了增量包。

但是导出我收到以下错误:

Update 1:
Following @Baz advice I installed delta pack.
But on export I got the following error:

我的设置是:

那么为什么我会在导出?

So why do I get the error during export?

更新2:

好​​的。必须添加增量包作为运行平台的一部分,而不是新的空目标。

Update 2:
OK. Had to add the delta pack as part of the Running Platform and not new empty target.

现在,导出确实导出了多个平台。尝试Win / 32位和Win / 64位。

当我尝试运行Win / 64位(这也是我的电脑的平台)一切都很好。

但是当我尝试运行Win / 32位版本时,我收到错误,它找不到jre

Now the export indeed exports for multiple platforms. Tried for Win/32bit and Win/64 bit.
When I try to run the Win/64 bit (which is also the platform of my PC) all is fine.
But when I try to run the Win/32 bit version I get error that it can not find the jre

为什么我得到这个错误?我应该捆绑jre吗?为什么Win / 64位有效?我没有设置一个 JAVA_HOME

Why do I get this error? Am I supposed to bundle the jre? Why does it work for the Win/64 bit? I have not set a JAVA_HOME

推荐答案

应用程序的多平台,是使用 Delta-Pack 这里是使用它的好方法。

The easiest way to get your application multi-platform, is to use the Delta-Pack. Here is a great tutorial for using it.

基本上,您可以下载eclipse版本的delta-pack版本,然后根据需要进行配置,然后可以为每个目标平台导出产品。

Basically, you download the delta-pack version for your eclipse version, then you configure it to your needs and then you can export your product for each target platform.

请记住,所包含的SWT.jar是特定于平台的。因此,您将无法运行,就像在64位JRE系统上的32位版本一样。

Keep in mind, that the contained SWT.jar is platform specific. So you won't be able to run, say the 32bit version on a 64bit JRE system.

因此,您将必须为每个目标系统提供一个您的产品。

Consequently, you will have to provide one jar of your product per target system.

这篇关于如何导出多个平台的eclipse 4应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆