@Test public void testIs64bit() throws Exception { assertThat(ExecUtils.is64bits("64")).isTrue(); assertThat(ExecUtils.is64bits("32")).isFalse(); assertThat(ExecUtils.is64bits("x86_64")).isTrue(); assertThat(ExecUtils.is64bits("x86")).isFalse(); }
public static boolean is64bits() { String arch = System.getProperty("sun.arch.data.model"); if (Strings.isNullOrEmpty(arch)) { arch = System.getProperty("os.arch"); } return is64bits(arch); }
ExecUtils { public static boolean is64bits() { String arch = System.getProperty("sun.arch.data.model"); if (Strings.isNullOrEmpty(arch)) { arch = System.getProperty("os.arch"); } return is64bits(arch); } }
ExecUtils { public static boolean is64bits() { String arch = System.getProperty("sun.arch.data.model"); if (Strings.isNullOrEmpty(arch)) { arch = System.getProperty("os.arch"); } return is64bits(arch); }  }
ExecUtils { public static boolean is64bits() { String arch = System.getProperty("sun.arch.data.model"); if (Strings.isNullOrEmpty(arch)) { arch = System.getProperty("os.arch"); } return is64bits(arch); }  static File find(String executable, File... dirs); static File findExecutableInDirectory(String executable, File directory); static File findExecutableInSystemPath(String executable); static boolean isWindows(); static boolean isWindows(String os); static boolean isMac(); static boolean isMac(String os); static boolean isLinux(); static boolean isLinux(String os); static boolean is64bits(); static boolean is64bits(String arch); static boolean isARM(); }
ExecUtils { public static boolean is64bits() { String arch = System.getProperty("sun.arch.data.model"); if (Strings.isNullOrEmpty(arch)) { arch = System.getProperty("os.arch"); } return is64bits(arch); }  static File find(String executable, File... dirs); static File findExecutableInDirectory(String executable, File directory); static File findExecutableInSystemPath(String executable); static boolean isWindows(); static boolean isWindows(String os); static boolean isMac(); static boolean isMac(String os); static boolean isLinux(); static boolean isLinux(String os); static boolean is64bits(); static boolean is64bits(String arch); static boolean isARM();  }