Linked Questions

Popular Questions

How to reload properties file in java

Asked by At

Any one please help me on reloading properties file. i have the code like this

Properties prop = new Properties();
InputStream trackerFileStream = 
    LoadProperty.class.getClassLoader().getResourceAsStream("sample.properties");
prop.load(trackerFileStream);

After loading the properties file through class loader, i modify the properties file. Am not able to get the latest modifications in the same program execution.

Can any one please suggest me how to reload the properties file without re-executing the program.

Related Questions