title: Shell script: How to put absolute path into command?
body: <p>I was trying to execute my java program through shell script so I wrote:</p>
  
  <pre><code>java -jar $(pwd)"/test.jar"
  </code></pre>
  
  <p>It worked flawlessly but when I turned to the code below:</p>
  
  <pre><code>PATH=$(pwd)"/test.jar"'
  java -jar $PATH
  </code></pre>
  
  <p>Then I got an error: "Run.sh: 3: java: not found"
  (Running on Ubuntu)</p>
  
  <p>I have very little experience in shell script so please let me know what's wrong with it. Thanks.</p>