static { JAVA_SPECIFICATION_VERSION_AS_ENUM = JavaVersion.get(JAVA_SPECIFICATION_VERSION); JAVA_UTIL_PREFS_PREFERENCES_FACTORY = getSystemProperty("java.util.prefs.PreferencesFactory"); JAVA_VENDOR = getSystemProperty("java.vendor"); JAVA_VENDOR_URL = getSystemProperty("java.vendor.url"); JAVA_VERSION = getSystemProperty("java.version"); JAVA_VM_INFO = getSystemProperty("java.vm.info"); JAVA_VM_NAME = getSystemProperty("java.vm.name"); JAVA_VM_SPECIFICATION_NAME = getSystemProperty("java.vm.specification.name"); JAVA_VM_SPECIFICATION_VENDOR = getSystemProperty("java.vm.specification.vendor"); JAVA_VM_SPECIFICATION_VERSION = getSystemProperty("java.vm.specification.version"); JAVA_VM_VENDOR = getSystemProperty("java.vm.vendor"); JAVA_VM_VERSION = getSystemProperty("java.vm.version"); LINE_SEPARATOR = getSystemProperty("line.separator"); OS_ARCH = getSystemProperty("os.arch"); OS_NAME = getSystemProperty("os.name"); OS_VERSION = getSystemProperty("os.version"); PATH_SEPARATOR = getSystemProperty("path.separator"); USER_COUNTRY = getSystemProperty("user.country") == null ? getSystemProperty("user.region") : getSystemProperty("user.country"); USER_DIR = getSystemProperty("user.dir"); USER_HOME = getSystemProperty("user.home"); USER_LANGUAGE = getSystemProperty("user.language"); USER_NAME = getSystemProperty("user.name"); USER_TIMEZONE = getSystemProperty("user.timezone"); IS_JAVA_1_1 = getJavaVersionMatches("1.1"); IS_JAVA_1_2 = getJavaVersionMatches("1.2"); IS_JAVA_1_3 = getJavaVersionMatches("1.3"); IS_JAVA_1_4 = getJavaVersionMatches("1.4"); IS_JAVA_1_5 = getJavaVersionMatches("1.5"); IS_JAVA_1_6 = getJavaVersionMatches("1.6"); IS_JAVA_1_7 = getJavaVersionMatches("1.7"); IS_JAVA_1_8 = getJavaVersionMatches("1.8"); IS_OS_AIX = getOSMatchesName("AIX"); IS_OS_HP_UX = getOSMatchesName("HP-UX"); IS_OS_400 = getOSMatchesName("OS/400"); IS_OS_IRIX = getOSMatchesName("Irix"); IS_OS_LINUX = getOSMatchesName("Linux") || getOSMatchesName("LINUX"); IS_OS_MAC = getOSMatchesName("Mac"); IS_OS_MAC_OSX = getOSMatchesName("Mac OS X"); IS_OS_FREE_BSD = getOSMatchesName("FreeBSD"); IS_OS_OPEN_BSD = getOSMatchesName("OpenBSD"); IS_OS_NET_BSD = getOSMatchesName("NetBSD"); IS_OS_OS2 = getOSMatchesName("OS/2"); IS_OS_SOLARIS = getOSMatchesName("Solaris"); IS_OS_SUN_OS = getOSMatchesName("SunOS"); IS_OS_UNIX = IS_OS_AIX || IS_OS_HP_UX || IS_OS_IRIX || IS_OS_LINUX || IS_OS_MAC_OSX || IS_OS_SOLARIS || IS_OS_SUN_OS || IS_OS_FREE_BSD || IS_OS_OPEN_BSD || IS_OS_NET_BSD; IS_OS_WINDOWS = getOSMatchesName("Windows"); IS_OS_WINDOWS_2000 = getOSMatches("Windows", "5.0"); IS_OS_WINDOWS_2003 = getOSMatches("Windows", "5.2"); IS_OS_WINDOWS_2008 = getOSMatches("Windows Server 2008", "6.1"); IS_OS_WINDOWS_95 = getOSMatches("Windows 9", "4.0"); IS_OS_WINDOWS_98 = getOSMatches("Windows 9", "4.1"); IS_OS_WINDOWS_ME = getOSMatches("Windows", "4.9"); IS_OS_WINDOWS_NT = getOSMatchesName("Windows NT"); IS_OS_WINDOWS_XP = getOSMatches("Windows", "5.1"); IS_OS_WINDOWS_VISTA = getOSMatches("Windows", "6.0"); IS_OS_WINDOWS_7 = getOSMatches("Windows", "6.1"); IS_OS_WINDOWS_8 = getOSMatches("Windows", "6.2"); }
public static boolean isJavaVersionAtLeast(JavaVersion var0) { return JAVA_SPECIFICATION_VERSION_AS_ENUM.atLeast(var0); }