title: JavaFx Images Path
body: <p>I have a problem with my Java class. Actually the code is correctly, but if I click the run-button there's a exception caused of the path of the image. </p>
  
  <pre><code>static Image currentBackground = new Image("Snake/Images/background_options.png", true);
  </code></pre>
  
  <p>And the compiler's message is: </p>
  
  <pre><code>Exception in thread "main" java.lang.ExceptionInInitializerError
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:264)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
  Caused by: java.lang.IllegalArgumentException: Invalid URL: Invalid URL or resource not found
      at javafx.scene.image.Image.validateUrl(Image.java:1100)
      at javafx.scene.image.Image.&lt;init&gt;(Image.java:624)
      at view.OptionsWindow.&lt;clinit&gt;(OptionsWindow.java:21)
      ... 3 more
  Caused by: java.lang.IllegalArgumentException: Invalid URL or resource not found
      at javafx.scene.image.Image.validateUrl(Image.java:1092)
      ... 5 more
  </code></pre>
  
  <p>Process finished with exit code 1</p>
  
  <p>Can anybody help me? </p>