Here you can find the source of loadProperties(String path)
public static Properties loadProperties(String path)
//package com.java2s; //License from project: MIT License import java.io.*; import java.util.*; public class Main { public static Properties loadProperties(String path) { Properties properties = new Properties(); try {//from w w w . java2s . com properties.load(new FileInputStream(path)); return properties; } catch (IOException e) { throw new RuntimeException("Cannot open " + path); } } }