I am using YUI compressor to compress js file, but while passing the full path on Windows7 it is giving error
java -jar c:\yui\yuicompressor-2.4.8.jar c:\js\CCOM.js -o c:\js\CCOMA.js
gives Error as follows
java.io.FileNotFoundException: yuiCCOMA.js:\yui\CCOM.js (The filena
me, directory name, or volume label syntax is incorrect)
the jar and source file do exist and it works fine when I run it directly from source directory
This is due to a bug in Version 2.4.8:
https://github.com/yui/yuicompressor/issues/111
https://github.com/yui/yuicompressor/issues/78
Until that is fixed, you can use 2.4.7 from here: https://github.com/yui/yuicompressor/downloads
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With