title: Where do I have to put a json file to be available in Java?
body: <p>I have a project where I like to read data from json files. However, the files cannot be found. I have already tried the java directory, as well as src/main/resources. For reading the files I use:</p>
  
  <p><code>InputStream is = new FileInputStream(file);</code></p>
  
  <p>where <em>file</em> is the name of the file, eg. "test.json".</p>
  
  <p>Is there a specific directory I need to use? When I use a directory like "c:\temp\test.json" it works.</p>
  
  <p>For the project I'm using IntelliJ and Maven.</p>