There is no direct way to find the installed java is 32 bit or 64 bit. So, to check run the following command.
if you get the out put as below, then your java is 32 bit.
[root@Vijay install]# /usr/java/jdk1.7.0_60/bin/java -d64 -version
Error: This Java instance does not support a 64-bit JVM.
Please install the desired version.
If you have 64 bit java then you will get the out put as below
[root@Vijay install]# /usr/java/jdk1.7.0_65/bin/java -d64 -version
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
if you get the out put as below, then your java is 32 bit.
[root@Vijay install]# /usr/java/jdk1.7.0_60/bin/java -d64 -version
Error: This Java instance does not support a 64-bit JVM.
Please install the desired version.
If you have 64 bit java then you will get the out put as below
[root@Vijay install]# /usr/java/jdk1.7.0_65/bin/java -d64 -version
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
No comments:
Post a Comment