title: Certain images not getting loaded with relative path - JavaFX
body: <p>I'm developing a portable desktop application and the UI uses certain images. My application's absolute path is: C:/Users/JP/Documents/EOL/Collection/DataCollection/src/application/</p>
  
  <p>I have my fxml and main class source files in application folder(specified above) and 3 images in "images" folder inside application folder. All are .jpg files. When I reference to these files in my fxml file using relative path, 1 gets loaded while the other two doesn't.</p>
  
  <p>I don't know why one specific file loads while others fails to load. </p>
  
  <p>When I reference that one file in all the three locations of my fxml, it works fine. And when I reference to all the 3 different images with absolute paths, it works fine. But I'm not understanding the issue with relative paths with respect to only a few files. Can anyone help me with this?</p>
  
  <p>I've also tried replacing '@' with "file:", but didn't help.</p>
  
  <pre><code>&lt;ImageView fitHeight="333.0" fitWidth="450.0" opacity="0.27"&gt;
      &lt;image&gt;
           &lt;Image url="@images/ht.jpg" /&gt;
      &lt;/image&gt;
  &lt;/ImageView&gt;
  &lt;ImageView fitHeight="70.0" fitWidth="68.0" layoutX="5.0" layoutY="7.0"&gt;
      &lt;image&gt;
          &lt;Image url="@images/eol.jpg" /&gt;
      &lt;/image&gt;
  &lt;/ImageView&gt;
  &lt;ImageView fitHeight="103.0" fitWidth="162.0" layoutX="78.0" layoutY="-9.0" preserveRatio="true"&gt;
      &lt;image&gt;
          &lt;Image url="@images/eol2.gif" /&gt;
      &lt;/image&gt;
  &lt;/ImageView&gt;
  </code></pre>