Java OS is 64 Bit is64()

Here you can find the source of is64()

Description

Return true, if running on 64bit Windows.

License

Open Source License

Return

true, if running on 64bit Windows.

Declaration

public static boolean is64() 

Method Source Code

//package com.java2s;
/*//  w  ww  .  ja va 2s  . c o m
Copyright (c) 2014 Wolfgang Imig
    
This file is part of the library "Java Add-in for Microsoft Office".
    
This file must be used according to the terms of   
      
  MIT License, http://opensource.org/licenses/MIT
    
 */

public class Main {
    /**
     * Return true, if running on 64bit Windows.
     * 
     * @return true, if running on 64bit Windows.
     */
    public static boolean is64() {
        final String keys[] = { "sun.arch.data.model", "com.ibm.vm.bitmode", "os.arch" };
        for (String key : keys) {
            String property = System.getProperty(key);
            if (property != null) {
                return (property.indexOf("64") >= 0);
            }
        }
        return false;
    }
}

Related

  1. is64()
  2. is64()
  3. is64Bit(String arch)
  4. is64BitArchitecture()
  5. is64BitOs()