Here you can find the source of is64()
public static boolean is64()
//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; } }