Here you can find the source of loadProperties(String filePath)
public static Properties loadProperties(String filePath) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.io.InputStream; import java.util.Properties; public class Main { public static Properties loadProperties(String filePath) throws IOException { InputStream inputStream = ClassLoader.getSystemResourceAsStream(filePath); Properties properties = new Properties(); properties.load(inputStream);// w w w.j a v a 2s.com inputStream.close(); return properties; } }