Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build a 32 bit Eclipse plugin application from a 64 bit Eclipse

Tags:

java

eclipse

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.

like image 729
RKM Avatar asked Jan 28 '13 13:01

RKM


People also ask

How do I run a 32 bit Eclipse on 64 bit Java?

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.

Can Eclipse run on 32 bit?

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.

Should I download eclipse 32 bit or 64 bit?

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.


1 Answers

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 :

  1. Have both Eclipse 32 and Eclipse 64 installed
  2. Launch your eclipse 64
  3. Go to Window/Preferences/Plug-in Development/Target Platform
  4. Click "Add" then "Nothing"
  5. Click "Add" then "Installation" and choose your Eclipse 32 directory
  6. Once your target created, select it (still in Window/Preferences/Plug-in Development/Target Platform)

Now, in your .product, the "Eclipse Product Export Wizard" will build an Eclipse 32 bits executable.

See this related answer

like image 136
Denys Séguret Avatar answered Sep 23 '22 08:09

Denys Séguret