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)
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.
Eclipse abandoned 32 bit support because Oracle abandoned it. There is no 32 bit JDK 11.
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.
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.
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.
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