title: Can´t load image from package
body: <p>My problem is that I can´t load an image from an subpackage in my java project with maven.</p>
  
  <p><a href="https://i.stack.imgur.com/ieg9j.png" rel="nofollow noreferrer">This is my project structure</a></p>
  
  <p>I tryed some different code snippets but always get a Nullpointer exception.</p>
  
  <p>I tryed:</p>
  
  <pre><code>Image image = new Image("/frontend/pictures/logo.png");
  Image image = new Image("frontend/pictures/logo.png");
  Image image = new Image("pictures/logo.png");
  Image image = new Image(getClass().getResource("frontend/pictures/logo.png").toString());
  </code></pre>
  
  <p>In an other Project it works fine for me but now I don´t know what I do wrong.</p>
  
  <p>Thanks for your help.</p>