Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java and Eclipse - 32 vs. 64bit

I'm a little bit confused about the two different versions of Eclipse - 32/64bit.

As far as I know, Java bytecode (= build of your code) is platform independend. If a user runs your bytecode in a 32bit JRE, the code is executed in as a 32bit process, if a user runs your bytecode in a 64bit JRE, the code is exectued as a 64bit process.

Eclipse needs the JRE to run, cause it's written in Java. But why are there 32 and 64bit versions of Eclipse on the Eclipse download page if only the user's JRE version does matter?

Does a 64bit Eclipse version need a 64bit JRE or JDK? If yes ,why?


Second confusion: I understand the need for a 32 and 64 bit version of the JRE. But why are there 32 and 64 bit versions of the JDK if the resulting bytecode is platform independet?

Thank you

like image 436
alapeno Avatar asked Mar 15 '12 20:03

alapeno


People also ask

Should I download Eclipse 32 bit or 64 bit?

The latest release of Eclipse requires a 64-bit JVM, and does not support a 32-bit JVM.

Should I use 32 or 64 bit Java?

Java with 64 and/or 32 bit web browsersUsers that run Applets and Web Start applications through web browsers should choose the version of Java that matches their web browser. Generally speaking, 64 bit browsers run only 64 bit plugins and 32 bit browsers run only 32 bit plugins.

Can Eclipse run on 32 bit?

Only 64-bit platforms/JVM are supported. See also Eclipse bug 536766.


2 Answers

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

like image 104
Rahul Borkar Avatar answered Oct 23 '22 03:10

Rahul Borkar


It is not because of the running environment, it is because Eclipse uses some native stuff and must be run on corresponding JDK. The applications you are developing inside Eclipse can then be run on whatever JRE you have installed, just specify it in the settings.

JDK is a compiler and also a lot of other stuff. Many of them are native applications that need to be run corresponding platform.

like image 33
Jakub Zaverka Avatar answered Oct 23 '22 04:10

Jakub Zaverka