title: Unable to access jarfile from a script on MAC
body: <p>I'm trying to write a script that runs a .jar file.
  The following command works from terminal (from the .jar file folder):</p>
  
  <pre><code>java -jar "./myjavatest.jar" 
  </code></pre>
  
  <p>When I put this line in a file and run it from the same folder (using terminal or double-click in finder), I get "Unable to access jarfile ./myjavatest.jar".</p>
  
  <p>I figured out that when I double click a file, it actually runs from the user home directory.
  Is it possible to run it from the folder that the file is located at?</p>