I'm working on a simple JSE project with maven configuration (Although I think it has nothing to do with Running the project from Eclipse). And when I try to get a Properties file with a FileInputStream I get FileNotFoundException.
Here's the source configuration
And here's the project structure :
This is part of the code I'm using to read properties file :
prop = new Properties();
InputStream input = null;
try {
input = new FileInputStream(new File(FLUX_PROPERTIES+".properties"));
prop.load(input);
paramDir = prop.getProperty(PARAM_DIR);
input.close();
prop = null;
} catch (FileNotFoundException e) {
LOG.error("Cannot find properties file");
}
Any hint please?