Difference between 32 and 64 bit Eclipse

34,846

Solution 1

Main difference, SWT. The core UI library used by Eclipse. You need the 64-bit version if you run on a 64-bit VM.

SWT is a native library used by Eclipse for it's UI. This makes Eclipse a mix of Java and Native code.

Solution 2

Leave Eclipse running in a 64 bit JVM. Install a 32 bit JVM and configure the project to use that 32 bit JVM.

When developing a program in Eclipse, remember that there's the IDE and then there's the program being written. Eclipse has no requirements to launch the program being written in the same JVM as the IDE.

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. Otherwise, you will run the risk of introducing dependencies based on the development environment (which might not be there in someone else's vanilla runtime).

Solution 3

is it as simple as replacing the EXEs that launch Eclipse with 32-bit versions?

No. I doubt it. Eclipse relies on SWT, which is essentially native code. There will be quite a few DLLs etc. (in the plugins or features directories) that will be used by the 64-bit version, that are drastically different from the 32-bit version.

Or are there other files that would have to be replaced?

Replacement is not safe. Reinstallation is safer, and the only sane option that I can think of. I don't think you should be debugging the Equinox launcher and myriads of other components, instead of working on your project.

Solution 4

As long as you have your source code backed up, I guess it wouldn't hurt to just try swapping the exe-files. Honestly though, I strongly suggest that you reinstall with the 32-bit version. There's no easy way to pinpoint the differences of the whole application and which files you would need to replace.

Solution 5

The SWT 32 bit jar and the SWT 64 bit jar are distinct. Swapping EXE's will not work. There may be more platform-specific jars in Eclipse. There are also more distinct differences (for example, WPF support) that you can see on the download page.

Share:
34,846
codewario
Author by

codewario

Husband, father, engineer, musician, and retrocomputing-enthusiast

Updated on April 10, 2020

Comments

  • codewario
    codewario about 4 years

    I have a quick question about the difference between the 32 and 64 bit version of Eclipse. I need to know what the difference is between the actual downloads, not the differences in performance or anything like that.

    My situation is this: I have set up a development environment for an Eclipse project (Java) using 64-bit Eclipse, versioned the files in Subversion, and found out after the fact that we MUST develop on a 32-bit OS because of constraints for other parts of this project. Rather than have to download and set up a whole different instance of Eclipse, is it as simple as replacing the EXEs that launch Eclipse with 32-bit versions? Or are there other files that would have to be replaced?

  • codewario
    codewario almost 13 years
    Well, my understanding is that Eclipse is all Java other than the executable used to launch it. That's all I'm trying to confirm is if this is true.
  • alternative
    alternative almost 13 years
    I don't think an exe swap would work. I think that theres a different SWT jar for 32 or 64 bit since it has native extensions.
  • Andrew T Finnell
    Andrew T Finnell almost 13 years
    @MetalSearGolid Eclipse is not all Java. It uses SWT which is a native library specifically built for each platform.
  • Vineet Reynolds
    Vineet Reynolds almost 13 years
    I wish I could add my personal experience here on a project that went through this; some folks attempted doing the same on a product using Eclipse RCP on a production server. But I think the DailyWTF is a better place.
  • SamB
    SamB almost 10 years
    Um, how is he supposed to run a 64-bit JVM on a 32-bit OS kernel?
  • SamB
    SamB almost 10 years
    Good demonstration of how much work this is, I think. Can anyone say "rsync"?
  • Edwin Buck
    Edwin Buck almost 10 years
    @SamB Read the post again, you somehow got it backwards. I am suggesting running a 32bit Eclipse on a 64 bit OS. It has to be 64 bit, otherwise it couldn't currently be running a 64 bit JVM.