Here you can find the source of is64Bit()
private static boolean is64Bit()
//package com.java2s; //License from project: Open Source License public class Main { private static boolean is64Bit() { return System.getProperty("os.arch").indexOf("64") != -1 || System.getProperty("sun.arch.data.model").indexOf("64") != -1; }//from w w w. j a v a 2s.c o m }