I have a 64 bit Eclipse Indigo installed, and Im trying to export my application as a executable using Product Export Wizard, everything works .. Except the executable it produces is a 64 bit executable, and I need it to run on a 32 bit machine. Is there a way to work around this?
Is it even possible to build a 32 bit plugin application from a 64 bit Eclipse?
Thanks.
Remove the -vm option so Eclipse starts with the default JRE. Then go to Preferences -> Java -> Installed JRE's and add your 32 bit Java installation and set it to be default (this is the trick). If the JVM used by your applications change, you are done.
Eclipse is 32 bit, the run configuration points only to the 32 bit JRE, the JAVA_HOME envvironment variable points to the 32 bit Java JRE, and my PATH only has the 32 bit JRE entry in it. Java 1.6. 0_32 32 bit JRE and JDK.
Unless you are actually developing an Eclipse-plugin, you will never know the difference. If you are developing an Eclipse-plugin, you should install a 32 bit version of Eclipse to use as your reference platform, and still develop the program using a different copy of Eclipse.
The solution I used for a similar problem (build an application based on Eclipse 3 framework from Eclipse 4) was to define a target. Here's how to do it :
Now, in your .product, the "Eclipse Product Export Wizard" will build an Eclipse 32 bits executable.
See this related answer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With