0

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 enter image description here

And here's the project structure :

enter image description here

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?

Iori Yagami
  • 387
  • 1
  • 3
  • 18

0 Answers0