title: How to make the yuicompressor jar file a singleton, or globally accessible?
body: <p>I'd like to put the <a href="http://developer.yahoo.com/yui/compressor" rel="nofollow noreferrer">yuicompressor</a> jar file in a single folder so that I can call</p>
  
  <p><code>java -jar yuicompressor-2.4.2.jar ...</code> </p>
  
  <p>from anywhere on my system, with cygwin. For bash files I use I simply put them in a common folder, and added the folder's path to my windows user's PATH environment variable and the bash commands were found in cygwin.</p>
  
  <p>when I <code>echo $PATH</code> I see the folder I put the yuicompressor jar into listed in the $PATH..</p>
  
  <p>But when I try <code>java -jar yuicompressor-x.y.z.jar myfile.js -o myfile-min.js</code> (for example) I get the following error message:</p>
  
  <blockquote>
    <p>Unable to access jarfile yuicompressor-2.4.2.jar</p>
  </blockquote>
  
  <p>Even when I try providing an absolute path to the jarfile I get the same error message..</p>
  
  <p>How can I do this?</p>