code: private static void printSystemProperties() {
      System.out.println("System properties: ");
      java.util.Properties p = System.getProperties();
      java.util.Enumeration keys = p.keys();
      while(keys.hasMoreElements()) {
        String thiskey = (String)keys.nextElement();
        String value = p.getProperty(thiskey);
        System.out.println(thiskey + " = " + value);
      }
    }
docs: prints all system properties for this process