List of utility methods to do Is Windows
boolean | isWindows() is Windows return File.separatorChar == '\\'; |
boolean | isWindows() Returns true when running on Windows, otherwise false .
return File.separatorChar == '\\'; |
boolean | isWindows() Check if the current system is windows. return separatorChar == '\\'; |
boolean | isWindows() is Windows return IS_WINDOWS;
|
boolean | isWindows() is Windows String name = System.getProperty("os.name"); return name != null ? name.contains("Windows") : File.separatorChar == '\\'; |
boolean | isWindows64JREAvailable() is Windows JRE Available try { String javaHome = new File(System.getProperty("java.home")).getCanonicalPath(); try { if (System.getProperty("os.name").startsWith("Windows")) { int dataModel = Integer.parseInt(System.getProperty("sun.arch.data.model")); if (dataModel != 64) { int idx = javaHome.indexOf(" (x86)"); if (idx > -1) { ... |
boolean | isWindowsAdministrator() is Windows Administrator try { String programFiles = System.getenv("ProgramFiles"); if (programFiles == null) { programFiles = "C:\\Program Files"; final File temp = new File(programFiles, "foo.txt"); if (temp.createNewFile()) { temp.delete(); ... |
boolean | isWindowsCygwin() is Windows Cygwin return System.getProperty("os.name").toLowerCase().contains("windows") && (findCygwinHome() != null); |
boolean | isWindowsFileSep() is Windows File Sep return File.separatorChar == WIN_FILE_SEP;
|
boolean | isWindowsFileSystem() is Windows File System return WINDOWS;
|