Here you can find the source of loadProperties(String propertyFile)
public static void loadProperties(String propertyFile) throws FileNotFoundException, IOException
//package com.java2s; //License from project: Apache License import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Properties; public class Main { static Properties properties = new Properties(); public static void loadProperties(String propertyFile) throws FileNotFoundException, IOException { FileInputStream input;/*from w ww. ja va 2 s.c o m*/ input = new FileInputStream(propertyFile); // load a properties file properties.load(input); //System.out.println("DF"); } }