32/64 bit eclipse

  • On a 64-bit version of openSUSE Linux, can there be a 32-bit eclipse working with 32-bit JVM compilation code for a 64-bit system?

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

+6
java eclipse linux 32bit-64bit opensuse
source share
6 answers

If you are building pure Java, there is no such thing as compilation for a specific architecture. Java bytecode is ported over the processor architecture and 32/64-bit.

If you want to compile another language (e.g. C ++), it gets a little more complicated. You may also encounter problems if you try to create a JNI wrapper for one architecture on another.

+10
source share

When you compile in Java, there are no 32 / 64bits concepts, it is just java Bytecode. So yes, you can compile java in a 32-bit environment and run it in a 64-bit version.

+4
source share

A compiled Java program is always identical, since Java runs through the Java virtual machine, which processes the architecture and native calls. The Java program is not fully compiled to machine code, only to byte code for the virtual machine. This means that a Java program can work with any architecture.

+2
source share

The crucial point is the JVM that you have chosen to run Eclipse iwth and your final program.

If all your code is Java, then the result can be run. The most noticeable difference is the amount of memory that a program can actually use, where a 64-bit JVM allows you to use more than a 32-bit JVM.

+2
source share

As I recall, there is some XUL library that depends on the processor architecture.

Thus, you need to emulate / virtualize the eclipse x86 environment to work inside the x64 environment.

Thus, the most expected exception should be a XUL library error.

And another way to hack life might be to switch to x64 libraries in the eclipse x86 package, but it is not guaranteed.

So, try installing the x86 eclipse application in your environment and post the logs here.

Relations Eugene

+1
source share

Check answers to a Java programming question for a 64-bit JVM

It doesn’t matter when you compile java code whether you compile for 32/64 bits.

0
source share

All Articles