If the current operating system cannot be detected — for example,
if the os.name JVM system property is undefined — then none
of the constants defined in this enum will be considered to be the
current operating system.
AIX, FREEBSD, LINUX, MAC, OPENBSD, SOLARIS, WINDOWS, OTHER, EnabledOnOs, DisabledOnOs
| Modifier and Type | Field and Description |
|---|---|
| public static final OS | AIX
IBM AIX operating system. |
| private static final @Nullable OS | |
| public static final OS | FREEBSD
FreeBSD operating system. |
| public static final OS | LINUX
Linux-based operating system. |
| private static final Logger | |
| public static final OS | MAC
Apple Macintosh operating system (e.g., macOS). |
| public static final OS | OPENBSD
OpenBSD operating system. |
| public static final OS | |
| public static final OS | SOLARIS
Oracle Solaris operating system. |
| public static final OS | WINDOWS
Microsoft Windows operating system. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static @Nullable OS | Returns: the current operating system, if known; otherwise,nullReturns the current operating system, if known; otherwise, |
| private static @Nullable OS | |
| public boolean | Returns: true if this OS is known to be the
operating system on which the current JVM is executingReturns |
| pack-priv static @Nullable OS | |
| public static OS | |
| public static OS[] |
| AIX | back to summary |
|---|---|
| public static final OS AIX IBM AIX operating system.
| |
| CURRENT_OS | back to summary |
|---|---|
| private static final @Nullable OS CURRENT_OS | |
| FREEBSD | back to summary |
|---|---|
| public static final OS FREEBSD FreeBSD operating system.
| |
| LINUX | back to summary |
|---|---|
| public static final OS LINUX Linux-based operating system. | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| MAC | back to summary |
|---|---|
| public static final OS MAC Apple Macintosh operating system (e.g., macOS). | |
| OPENBSD | back to summary |
|---|---|
| public static final OS OPENBSD OpenBSD operating system.
| |
| OTHER | back to summary |
|---|---|
| public static final OS OTHER An operating system other than | |
| SOLARIS | back to summary |
|---|---|
| public static final OS SOLARIS Oracle Solaris operating system. | |
| WINDOWS | back to summary |
|---|---|
| public static final OS WINDOWS Microsoft Windows operating system. | |
| OS | back to summary |
|---|---|
| private OS() | |
| current | back to summary |
|---|---|
| public static @Nullable OS current() Returns the current operating system, if known; otherwise, | |
| determineCurrentOs | back to summary |
|---|---|
| private static @Nullable OS determineCurrentOs() | |
| isCurrentOs | back to summary |
|---|---|
| public boolean isCurrentOs() Returns
| |
| parse | back to summary |
|---|---|
| pack-priv static @Nullable OS parse(String osName) | |
| valueOf | back to summary |
|---|---|
| public static OS valueOf(String name) | |
| values | back to summary |
|---|---|
| public static OS[] values() | |