code: public static void main(final String[] args) throws Exception {
          String propertyFile = System.getProperty("propertyFile");
  
          final Properties properties = new Properties();
          try {
              properties.load(new FileInputStream(propertyFile));
          } catch (FileNotFoundException e) {
              e.printStackTrace();
          } catch (IOException ie) {
              ie.printStackTrace();
          }
  
          for (String pr : properties.stringPropertyNames()) {
              System.out.println(pr + " : " + properties.getProperty(pr));
          }
  
          run(properties);
      }
docs: Main method. It receives the property file using a system property
  ('propertyFile')
  
  @param args Input arguments (not used).
  @throws Exception if no properties can be read.