Here you can find the source of is64Bits()
public static boolean is64Bits()
//package com.java2s; /*/*from ww w . j a v a 2s .c o m*/ * Copyright (c) 2009-2013 Rubrica.ec * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. */ public class Main { public static boolean is64Bits() { return System.getProperty("os.arch").equals("xmd64"); } }