title: IntelliJ: non absolute (relative) path to resources
body: <p>I have code like this:</p>
  
  <pre><code>public class EntryPoint {
      public static void main(String args[]) {
          File file = new File("resources/file.xml");
          try {
              Document document = new SAXReader().read(file);
          } catch (DocumentException e) {
              e.printStackTrace();
          }
      }
  
  }
  </code></pre>
  
  <p>and structure of my test module is as follows:</p>
  
  <p><img src="https://i.stack.imgur.com/2lXbY.jpg" alt="structure of my test module"></p>
  
  <p>The problem is that I get error:</p>
  
  <blockquote>
    <p>Nested exception: java.io.FileNotFoundException: resources\file.xml</p>
  </blockquote>
  
  <p>Of course I could change path, for example like this:</p>
  
  <pre><code>File file = new File("C:/ws/_SimpleTests/resources/file.xml");
  </code></pre>
  
  <p>and it would work ok, but I dont want to use absolute path.</p>
  
  <p>What should I set in IntelliJ to use relative path?</p>