Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

32/64 bit eclipse

  • On 64-bit openSUSE Linux, can a 32-bit eclipse running with 32-bit JVM compile code for a 64-bit system?

  • Is this setup possible? (Installing and running eclipse/java 32-bit on a 64-bit system)

like image 332
Ido Weinstein Avatar asked Aug 18 '10 12:08

Ido Weinstein


People also ask

Is Eclipse 64 bit or 32 bit?

Click on 'Configuration' tab: Scroll down and look for osgi. arch in in textbox, ' x86 ' indicates 32 bit and ' x86_64 ' indicates 64 bit eclipse.

Is there a 32 bit version of Eclipse?

Eclipse abandoned 32 bit support because Oracle abandoned it. There is no 32 bit JDK 11.

How can I run 32 bit Eclipse on 64 bit Windows?

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.


2 Answers

If you're building pure Java, there's no such thing as compiling for a particular architecture - Java bytecode is portable across CPU architectures and 32/64-bitness.

If you want to compile another language (such as C++) then it gets a bit harder. Likewise you may find problems if you try to build JNI wrappers for one architecture on another.

like image 157
Jon Skeet Avatar answered Oct 19 '22 23:10

Jon Skeet


When you compile in Java there is no notions of 32/64bits it's just java Bytecode. So yes, you can compile java in a 32bits environment and run it in a 64bits one.

like image 35
Colin Hebert Avatar answered Oct 20 '22 01:10

Colin Hebert