To know about the JVM bit version i.e. currently running on Linux Server, use following command:
#java -d64 -version
or
#java -d32 -version
If you have 32 bit JVM and you run above command i.e. java -d64 -version, then you'll get some error message on the console like ....
[root@localhost default]$ java -d64 -version
Running a 64-bit JVM is not supported on this platform.
And if you run command "java -d32 -version" , then you'll get....
[root@localhost default]$ java -d32 -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
Kuldeep Sharma
#java -d64 -version
or
#java -d32 -version
If you have 32 bit JVM and you run above command i.e. java -d64 -version, then you'll get some error message on the console like ....
[root@localhost default]$ java -d64 -version
Running a 64-bit JVM is not supported on this platform.
And if you run command "java -d32 -version" , then you'll get....
[root@localhost default]$ java -d32 -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
!Hope this will help you
!EnjoyKuldeep Sharma