Thursday, August 4, 2011

How to know java bit version(32bit or 64bit) in Linux


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)

!Hope this will help you
!Enjoy
Kuldeep Sharma

No comments:

Post a Comment

Quickstart Guide for Kagent Setup with Local LM and Azure OpenAI

  LM Studio overview with running on the local system. To upgrade and install the kagent custom resource definitions (CRDs), you can execute...