Here you can find the source of is64bitPlatform()
public static boolean is64bitPlatform()
//package com.java2s; //License from project: LGPL public class Main { public static boolean is64bitPlatform() { return System.getProperty("os.arch").indexOf("64") >= 0; // should be enough in most cases }//from w w w. j a va 2 s . com }