Printer FriendlyEmail Article Link

Avalanche: How do you check if Java is running 32 or 64-bit JVM?

Environment/Versions
  • Avalanche
Answer
  • Method 1
    enter "java -version" at the command prompt
    if there is no mention of 64-bit then you are running a 32-bit version

    32-bit example:
       [mkanada@es5 t1]$ java -version
       java version "1.6.0_45"
       Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
       Java HotSpot(TM) Server VM (build 20.45-b01, mixed mode)

    64-bit example:
       [mkanada@es5 t1]$ java -version
       java version "1.6.0_25"
       Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
       Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)

 

  • Method 2
    enter "java -64"
    If you are not running 64-bit Java it will complain

    Example:
       [mkanada@es5 t1]$ java -d64
       Running a 64-bit JVM is not supported on this platform.

     

 


Product : Automation,Avalanche