public static boolean is64BitVM(){
  final String bits=System.getProperty("sun.arch.data.model","?");
  return bits.equals("64");
}

public static boolean is64BitVM ( ) { final String bits = System . getProperty ( "sun.arch.data.model" , "?" ) ; return bits . equals ( "64" ) ; }
check if we have a 64 - bit jvm .
