Search notes:

Java class java.lang.System - getProperty

public class getProperty {

  static private void  p(String propertyName) {

    System.out.println(String.format("%1$-" + 20 + "s", propertyName + ":") + System.getProperty(propertyName));

  }

  public static void main(String[] argv) {

  //   «Predefined» properties

    p("file.separator"  ); //   "/" on UNIX and "\" on Windows.
    p("java.class.path" ); //   Try   java -cp foo:bar:. getProperty   to see effect
    p("java.home"       ); //   Installation directory for JRE
    p("java.vendor"     ); //   JRE vendor name
    p("java.vendor.url" ); //   JRE vendor URL
    p("java.version"    ); //   JRE version number
    p("line.separator"  ); //   How text files seperate lines
    p("os.arch"         ); //   Processor?
    p("os.name"         );
    p("os.version"      );
    p("path.separator"  ); //   : on Unix and ; on Windows?
    p("user.dir"        ); //   Working directory
    p("user.home"       ); //   Home directory
    p("user.name"       );

 //    Properties passed with the -D flag
  
    p("foo.bar"         ); //   java -Dfoo.bar=something getProperty 


  }

}
Github repository JavaClasses, path: /java/lang/System/getProperty.java

See also

Java classes

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758199934, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Java/classes/java/lang/System/getProperty(72): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78