Monday 21 March 2016

Jar was compiled on a 64bit or 32bit system?

Jar was compiled on a 64bit or 32bit system?


Java byte code is platform independent and it doesn't matter whether it was built with a 32-bit or 64-bit JDK and there is no way to figure this out.

There is no difference to have a jar compiled with 32-bit or 64-bit. It should be platform-independent, unless otherwise you have some native library dependency.

Also some 64-bit JVMs use COMPRESSED OOPS. It is because data is aligned to around every 8 or 16 bytes. This allows 32-bit address data to use heap sizes of 35 or 36 bits on a 64-bit platform.


No comments:

Post a Comment