Java Utililty Methods Is Windows

List of utility methods to do Is Windows

Description

The list of methods to do Is Windows are organized into topic(s).

Method

booleanisWindows()
is Windows
return File.separatorChar == '\\';
booleanisWindows()
Returns true when running on Windows, otherwise false.
return File.separatorChar == '\\';
booleanisWindows()
Check if the current system is windows.
return separatorChar == '\\';
booleanisWindows()
is Windows
return IS_WINDOWS;
booleanisWindows()
is Windows
String name = System.getProperty("os.name");
return name != null ? name.contains("Windows") : File.separatorChar == '\\';
booleanisWindows64JREAvailable()
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) {
...
booleanisWindowsAdministrator()
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();
...
booleanisWindowsCygwin()
is Windows Cygwin
return System.getProperty("os.name").toLowerCase().contains("windows") && (findCygwinHome() != null);
booleanisWindowsFileSep()
is Windows File Sep
return File.separatorChar == WIN_FILE_SEP;
booleanisWindowsFileSystem()
is Windows File System
return WINDOWS;