javasystem-properties

System.getProperty() showing null


How so I get the default value of system property in java like ntlm.debug or jdk.tls.stapling. ignoreExtensions On using system.getProperty(Property name) gives null. I am running with jdk version 11.0.7 Is there any other way to get default values of the properties?


Solution

  • System.getProperties() will give a map of all default properties of the system.
    like
    sun.management.compiler : HotSpot 64-Bit Tiered Compilers
    sun.jnu.encoding : UTF-8
    java.runtime.version : 14+36-1461
    ...