title: bash: jar: command not found
body: <p>I'm using <strong><em>Jenkins</em></strong> to deploy the build.</p>
  
  <p>We need to extract files from a <strong>.war</strong> into some directory.
  We have an <strong>.xml</strong> file which includes commands to extract the files from the <strong>.war</strong> file and start the server.</p>
  
  <p>The build is being created properly but the <strong>.war</strong> extraction is not happening and the destination folder is being left empty.  The Jenkins Console shows the following output:</p>
  
  <pre><code>[sshexec] bash: jar: command not found
  </code></pre>
  
  <p>As read from other answers, I have set the <code>PATH</code> properly in <strong>.bashrc</strong> or in <strong>.profile</strong> but I'm still facing the same issue.</p>