title: Java FileNotFoundException when running a jar file
body: <p>In my project I load my resource using</p>
  
  <pre><code>getClass().getResource("/package/my_reource.file").getFile()
  </code></pre>
  
  <p>All works good when I run the project in netbeans, but if I run the jar file, I get FileNotFoundException, why?</p>
  
  <p>Thanks.</p>