If you have installed JDK, Java would have registered in the
system environment variables.
Go to command prompt and type “java –version”
C:\Users\kh1205>java
-version
java version
"1.6.0_30"
Java(TM) SE Runtime
Environment (build 1.6.0_30-b12)
Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed
mode)
If it’s a 64 bit Java, you will be finding “64-Bit Server VM” in the above line.
If it’s a 32 bit java, you will be finding “Client VM” in the above line.
I have another JDK configured in my system, for which I wanted
to check java version.
For example, other version of java is available in the
location “C:\Program Files
(x86)\Java\jdk1.6.0_31”
C:\Program Files (x86)\Java\jdk1.6.0_31\bin>java -version
java version
"1.6.0_31"
Java(TM) SE Runtime
Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode,
sharing)
“Client VM” in the last line tell you that, JDK is a 32 bit version.
No comments:
Post a Comment