How can you tell 32bit or 64bit?

Hi,

This is going to sound simple enough. But how can you tell if I am using 64bit or 32bit JDK?

For example, when I issue, java -version, I am getting the following

java version "1.5.0_05"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)

Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode)

If this JDK was 64bit would I be seeing something different?

Thanks in advance,

Mustafa

[462 byte] By [ACaycia] at [2007-10-3 8:41:54]
# 1
Yes, it would say 64 bit server vm
gcollins1a at 2007-7-15 3:50:16 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Could you post how the output would look for the 64 bit JDK?
parable1a at 2007-7-15 3:50:16 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3

I discovered that if you execute the following command you will get the ensuing output:

bash-2.05$ java -d64 -version

java version "1.5.0_06"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)

Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b05, mixed mode)

parable1a at 2007-7-15 3:50:16 > top of Java-index,Java HotSpot Virtual Machine,Specifications...