title: Why can't I access a file within my jar unless I'm in the folder with the Jar when I run it?
body: <p>I recently created an application and successfully jarred this to c:/my/folder/app.jar. It works like a charm in the following case [Startup #1]:</p>
  
  <ul>
  <li>Open cmd</li>
  <li>cd to c:/my/folder</li>
  <li>java -jar app.jar</li>
  </ul>
  
  <p>But when I do this, it doesn't work [Startup #2]:</p>
  
  <ul>
  <li>Open cmd</li>
  <li>cd to c:/my/</li>
  <li>java -jar folder/app.jar</li>
  </ul>
  
  <p>Because app.jar contains a .exe-file which I try to run in my application:</p>
  
  <p><code>final Process p = Runtime.getRuntime().exec("rybka.exe");</code></p>
  
  <p>It won't work in example 2 because it can't find the file rybka.exe.</p>
  
  <p>Any suggestions?</p>