I need to read the configuration details from a properties file in eclipse. I have put the config.properties
at the same level as plugin.xml
and in the class file I call:
Properties properties = new Properties();
FileInputStream file;
String path = "./config.properties";
file = new FileInputStream(path);
properties.load(file);
I get a file not found exception
. Is there a better way of doing this?