Here you can find the source of is64BitWin()
private static boolean is64BitWin()
//package com.java2s; public class Main { private static boolean is64BitWin() { String arch = System.getenv("PROCESSOR_ARCHITECTURE"); String wow64Arch = System.getenv("PROCESSOR_ARCHITEW6432"); return (arch.endsWith("64") || (wow64Arch != null && wow64Arch.endsWith("64"))); }//from w w w . j a v a 2s . c o m }