How to make the yuicompressor jar file a singleton, or globally accessible?
Posted
by Erik Vold
on Stack Overflow
See other posts from Stack Overflow
or by Erik Vold
Published on 2010-04-27T21:28:10Z
Indexed on
2010/04/27
21:33 UTC
Read the original article
Hit count: 339
I'd like to put the yuicompressor jar file in a single folder so that I can call
java -jar yuicompressor-2.4.2.jar ...
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.
when I echo $PATH
I see the folder I put the yuicompressor jar into listed in the $PATH..
But when I try java -jar yuicompressor-2.4.2.jar ...
I get the following error message:
Unable to access jarfile yuicompressor-2.4.2.jar
Even when I try providing an absolute path to the jarfile I get the same error message..
How can I do this?
© Stack Overflow or respective owner