Class SystemInformation

java.lang.Object
com.pnfsoftware.jeb.client.SystemInformation

public class SystemInformation extends Object
Utility routines to retrieve system information such as java version, OS name, locale, etc.
  • Field Details

    • javavendor

      public static final String javavendor
      the java.vendor property, may be empty but never null
    • javaversion

      public static final String javaversion
      the java.version property, may be empty but never null
    • osname

      public static final String osname
      the os.name property, may be empty but never null
    • osarch

      public static final String osarch
      the os.arch property, may be empty but never null
    • osversion

      public static final String osversion
      the os.version property, may be empty but never null
    • username

      public static final String username
      the user.name property, may be empty but never null
    • compname

      public static final String compname
      the computer name, may be empty but never null
    • localeinfo

      public static final String localeinfo
      the system's locale, may be empty but never null
    • osfullname

      public static final String osfullname
      the operating system full name, may be empty but never null
  • Constructor Details

    • SystemInformation

      public SystemInformation()
  • Method Details

    • getCurrentDirectory

      public static String getCurrentDirectory()
      Returns:
      the current directory
    • setCurrentDirectory

      public static String setCurrentDirectory(String cd)
      Parameters:
      cd - the new current directory
      Returns:
      the previous current directory
    • determineLinuxOSFullname

      public static String determineLinuxOSFullname(String releaseFilePath)