Here you can find the source of is64Bit()
public static boolean is64Bit()
//package com.java2s; //License from project: Open Source License public class Main { static String osArch = System.getProperty("os.arch"); public static boolean is64Bit() { return osArch.contains("64"); }//w ww. j a v a 2 s .com }