Get OS Info : OS « Development Class « Java

Get OS Info


public class Util{

  public static String[] getOSInfo()
    return new String[]
    { //
    "OS: " + System.getProperty("") + " Build: " + System.getProperty("os.version"), //
        "OS Arch: " + System.getProperty("os.arch"), //



Related examples in the same category

1.Class representing a standard operating system platform, WIN, MAC, or POSIX.
2.Get OS
3.Platform specific functionality.
4.Condition that tests the OS type.
5.Class to help determining the OS
6.Splits apart a OS separator delimited set of paths in a string into multiple Strings.
7.Get the operating systemGet the operating system
8.Get the OS
9.Virtual Machine Information (JVM)
10.Java Platform Information
11.Platform Detector
12.OS detector
13.OS name
14.Operating System