Possible Duplicate:
installed jvm is 64 bit or 32 bit
How do I check which bit version of Java is installed on my linux machine? When I type:
java -version
I get:
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)
Is that 32bit or 64bit?
Go to the command prompt. Type "java -version" and press enter. If you are running Java 64-bit the output should include "64-Bit"
Run java
with -d64
or -d32
specified, it will give you an error message if it doesn't support 64-bit or 32-bit respectively. Your JVM may support both.
Why don't you examine System.getProperty("os.arch")
value in your code?
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