title: Java: GetResource from different folder
body: <p>I am trying to make 3 folders in a <code>Javafx</code> application. I have a <code>Views</code> folder which will contain my views, and I want to load an <code>fxml</code> file saved inside <code>Views</code>. I wrote this code inside <code>start</code> method:</p>
  
  <pre><code>Parent root = FXMLLoader.load(getClass().getResource("/Views/ProductView.fxml"));
  </code></pre>
  
  <p>My folders are structured as follows:
  <a href="https://i.stack.imgur.com/yW6JT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yW6JT.png" alt="enter image description here"></a></p>
  
  <p>Apparently <code>GetResources()</code> can't find my file. What am I doing wrong?</p>