Class SystemUtils


  • public class SystemUtils
    extends Object
    SystemUtils provides some simple helper methods for working with the current Operating System. It follows the convention of wrapping all checked exceptions as runtimes, so code using these methods is free of try-catch blocks but does not expect to recover from errors.
    • Method Detail

      • getOSName

        public static final String getOSName()
      • getOSVersion

        public static final String getOSVersion()
      • getOSArch

        public static final String getOSArch()
      • getProcessPid

        public static final String getProcessPid()
      • getProcessPidAsInt

        public static final int getProcessPidAsInt()
      • isWindows

        public static final boolean isWindows()
      • getOSConfigSuffix

        public static final String getOSConfigSuffix()
      • getOSString

        public static final String getOSString()