Enum StandardSystemProperty
- All Implemented Interfaces:
- Serializable,- Comparable<StandardSystemProperty>,- Constable
Represents a standard system property.
- Since:
- 15.0
- Author:
- Kurt Alfred Kluever
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionFile separator ("/" on UNIX).Java class path.Java class format version number.Name of JIT compiler to use.Deprecated.This property was deprecated in Java 8 and removed in Java 9.Java installation directory.Default temp file path.List of paths to search when loading libraries.Java Runtime Environment specification name.Java Runtime Environment specification vendor.Java Runtime Environment specification version.Java Runtime Environment vendor.Java vendor URL.Java Runtime Environment version.Java Virtual Machine implementation name.Java Virtual Machine specification name.Java Virtual Machine specification vendor.Java Virtual Machine specification version.Java Virtual Machine implementation vendor.Java Virtual Machine implementation version.Line separator ("\n" on UNIX).Operating system architecture.Operating system name.Operating system version.Path separator (":" on UNIX).User's current working directory.User's home directory.User's account name.
- 
Method SummaryModifier and TypeMethodDescriptionkey()Returns the key used to look up this system property.toString()Returns a string representation of this system property.value()Returns the current value for this system property by delegating toSystem.getProperty(String).static StandardSystemPropertyReturns the enum constant of this type with the specified name.static StandardSystemProperty[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
JAVA_VERSIONJava Runtime Environment version.
- 
JAVA_VENDORJava Runtime Environment vendor.
- 
JAVA_VENDOR_URLJava vendor URL.
- 
JAVA_HOMEJava installation directory.
- 
JAVA_VM_SPECIFICATION_VERSIONJava Virtual Machine specification version.
- 
JAVA_VM_SPECIFICATION_VENDORJava Virtual Machine specification vendor.
- 
JAVA_VM_SPECIFICATION_NAMEJava Virtual Machine specification name.
- 
JAVA_VM_VERSIONJava Virtual Machine implementation version.
- 
JAVA_VM_VENDORJava Virtual Machine implementation vendor.
- 
JAVA_VM_NAMEJava Virtual Machine implementation name.
- 
JAVA_SPECIFICATION_VERSIONJava Runtime Environment specification version.
- 
JAVA_SPECIFICATION_VENDORJava Runtime Environment specification vendor.
- 
JAVA_SPECIFICATION_NAMEJava Runtime Environment specification name.
- 
JAVA_CLASS_VERSIONJava class format version number.
- 
JAVA_CLASS_PATHJava class path.
- 
JAVA_LIBRARY_PATHList of paths to search when loading libraries.
- 
JAVA_IO_TMPDIRDefault temp file path.
- 
JAVA_COMPILERName of JIT compiler to use.
- 
JAVA_EXT_DIRSDeprecated.This property was deprecated in Java 8 and removed in Java 9. We do not plan to remove this API from Guava, but if you are using it, it is probably not doing what you want.Path of extension directory or directories.
- 
OS_NAMEOperating system name.
- 
OS_ARCHOperating system architecture.
- 
OS_VERSIONOperating system version.
- 
FILE_SEPARATORFile separator ("/" on UNIX).
- 
PATH_SEPARATORPath separator (":" on UNIX).
- 
LINE_SEPARATORLine separator ("\n" on UNIX).
- 
USER_NAMEUser's account name.
- 
USER_HOMEUser's home directory.
- 
USER_DIRUser's current working directory.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
keyReturns the key used to look up this system property.
- 
valueReturns the current value for this system property by delegating toSystem.getProperty(String).The value returned by this method is non-null except in rare circumstances: - JAVA_EXT_DIRSwas deprecated in Java 8 and removed in Java 9. We have not confirmed whether it is available under older versions.
- JAVA_COMPILER, while still listed as required as of Java 15, is typically not available even under older version.
- Any property may be cleared through APIs like System.clearProperty(java.lang.String).
- Unusual environments like GWT may have their own special handling of system properties.
 Note that StandardSystemPropertydoes not provide constants for more recently added properties, including:- java.vendor.version(added in Java 11, listed as optional as of Java 13)
- jdk.module.*(added in Java 9, optional)
 
- 
toStringReturns a string representation of this system property.- Overrides:
- toStringin class- Enum<StandardSystemProperty>
 
 
-