The java.awt.System.getProperty method is used to retrieve a system property value. It takes a string parameter representing the name of the property and returns a string representing its value.
This code retrieves the user.home property which is the path of the user's home directory and stores it in the variable user_home.
Both of these examples use the java.awt package, which is a part of the Java Standard Edition (SE) platform. More specifically, they use the java.awt.System class which is included in the package.
Java System.getProperty - 30 examples found. These are the top rated real world Java examples of java.awt.System.getProperty extracted from open source projects. You can rate examples to help us improve the quality of examples.