List of utility methods to do OS is 64 Bit
boolean | is64Bits() is Bits return System.getProperty("os.arch").equals("xmd64"); |
boolean | is64Bits() is Bits return "64".equals(System.getProperty("sun.arch.data.model")); |
Boolean | is64BitVM() Used to get check if JVM is 64-bit Boolean bits64; bits64 = System.getProperty("sun.arch.data.model").equals("64"); return bits64; |
boolean | is64BitVM() is Bit VM try { int bits = Integer.getInteger("sun.arch.data.model", 0).intValue(); if (bits != 0) { return bits == 64; return System.getProperty("java.vm.name").indexOf("64") >= 0; } catch (Throwable t) { return false; ... |
boolean | is64BitWin() is Bit Win String arch = System.getenv("PROCESSOR_ARCHITECTURE"); String wow64Arch = System.getenv("PROCESSOR_ARCHITEW6432"); return (arch.endsWith("64") || (wow64Arch != null && wow64Arch.endsWith("64"))); |