How to build a 32-bit Eclipse plug-in application from 64-bit Eclipse

I have installed 64-bit Eclipse Indigo and am trying to export my application as an executable using the Export Commodities Wizard. Everything works. With the exception of the executable, it is 64-bit executable, and I need it to run on a 32-bit machine. Is there any way around this?

Is it possible to build a 32-bit plug-in application from 64-bit Eclipse?

Thanks.

+4
source share
2 answers

The solution I used for a similar problem (building an application based on the Eclipse 3 framework from Eclipse 4) was to determine the purpose. Here's how to do it:

  • Both Eclipse 32 and Eclipse 64 installed
  • Launch eclipse 64
  • Go to the window / Preferences / Development Plugin / Target Platform
  • Click Add, then Nothing.
  • Click Add, then Install, and select the Eclipse 32 directory
  • Once your goal is created, select it (still in the window / Preferences / Plugin Development / Target Platform).

Now, in your .product, the Eclipse Product Export Wizard will create a 32-bit Eclipse executable.

See the corresponding answer.

+4
source

To export your application to several platforms, 32 and 64 bits, you first need to determine the target platform, and then install the so-called " delta pack ".

The delta package contains all platform-specific resources from the SDK and is used for cross-platform export of RCP applications.

Here is the deltapack installation tutorial (just make sure you match the target version of the platform with the deltapack version). Another important thing: setting up the eclipse workspace and setting up the target platform MUST NOT be the same. I mean that they can and most of the time are the same version / version of eclipse, but for the correct export of a multi-platform project, you should not use the working platform as the goal.

. You have installed deltapack and rebooted the target platform, the product export wizard will present an additional “build for multiple platforms” additional flag. If you check it out, clicking next will take you to a new step where you can select any / os architecture supported by eclipse.

More on target platforms and deltapakc is covered by the always good, but slightly outdated tutorial from L.Vogel.

+3
source

All Articles