title: Issue in Working with Images in Javafx 2.0
body: <p>I am new to NetBeans IDE and Javafx 2.0. I have a small issue in working with Images in Javafx 2.0,  I am developing a small app using Javafx and ExcelSheet and I use NetBeans IDE 7.1 Beta Version</p>
  
  <p>I initiaize my image as shown below</p>
  
  <pre><code>Image okImage = new Image("src/resources/ok.png");
  </code></pre>
  
  <p>When I run my app from netbeans using Run(F6) cmd everything works fine. But when I try to run my app out of netbeans say from Command Prompt by using the cmd java -jar Myapp.jar  I cannot see the image being displayed in the window.   </p>
  
  <p>Note: </p>
  
  <p>I cant use the below mentioned way to initialize my Image </p>
  
  <p><strong><code>Image infoImage = new Image(getClass().getResourceAsStream("/resources/info.png"));</code></strong></p>
  
  <p>Because I want to use this image inside a static method </p>
  
  <p>So I initialize the image as </p>
  
  <pre><code>final static Image infoImage = new Image("src/resources/info.png");
  </code></pre>
  
  <p>But, the Image is not displayed. </p>
  
  <p>I am totally lost Please guide me </p>