I have a jar but I don't know if it is a .jar
for a 64bit system or for a 32bit system. How to find that out?
EDIT: My .jar
has native library dependency.
I have a jar but I don't know if it is a .jar
for a 64bit system or for a 32bit system. How to find that out?
EDIT: My .jar
has native library dependency.
That's beauty of JVM and platform independence means. There is no value to 32bit or 64bit when it comes to Java, JVM, Jar etc.
Java bytecode is java bytecode, 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.
I think it does not make any difference to have a jar compiled with 32-bit or 64-bit. It should be machine-independent; unless you have some native library dependency or the java code is directly being compiled to native code.
A pure jar is not compiled to a particular architecture.
A 32 bit JVM will run the jar in 32 bit, likewise a 64 bt JVM will run the jar in 64 bit.
Of course, if your jar uses native libraries then the 'bitness' of these will have to match the JVM that you use to run the jar.