image not loading in javafx css from resource folder while making jar
<pre><code>project 
  src/main/java
  src/main/resources  css &amp; img
</code></pre>

<p>Hi above is my maven based javafx app structure. The app not loading images from runnable jar file.
example  <code>-fx-background-image: url("../img/bg.PNG");</code></p>

<pre><code>Error loading image: jar:file:/D:/demo.jar!/img/top_bg.PNG
</code></pre>