Is there a reference page that lists all the standard property keys that are always accepted by the Java System.getProperty(key)
method?
I am not referring to system properties that can be set by the user of the java command (this would be an unlimited list), but to the properties the runtime sets itself (such as java.version
, java.specification.version
, etc).
For a better way of printing the output, you may use the following code. Note that this code is completely functional in the environment and programming language Processing. (Yes, it is Java based)
Hope it helps. ;)
Like: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html ? I'd say Oracle will have a list
Update (copied from link above):
A more complete list from https://docs.oracle.com/javase/8/docs/api/java/lang/System.html
Although some duplicates, I think the former descriptions are more informative than the latter. The latter lists 28 properties, whereas if I print all the properties, my jvm responds with 56, some not listed in the 28 include
sun.*
(12),*.awt.*
(3), 7 out of 10 user properties (country.format, country, script, variant, timezone, language, language.format
)You can display all properties and their settings on you console using following code
You can find an example here http://javacodingnerd.blogspot.de/2017/03/java-how-to-gather-system-properties.html
Maybe also helpful:
Show the effective property values your JVM picks up:
You can use this code to get the system properties:
You can also get the environment information from System.getEnv().