Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YUI compressor 2.48 windows path error

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

like image 612
DevC Avatar asked Oct 02 '22 08:10

DevC


1 Answers

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

like image 52
user453441 Avatar answered Oct 06 '22 20:10

user453441