Difficulty installing YUI compressor W3 Total Cache

0

I recently installed the W3 Total Cache plugin, but I'm having trouble installing Java. See the screenshot :

I have been reading in foreign forums that I need to install the YUI compressor file on the server, however I am having trouble figuring which folder to put, so it does not error.     

asked by anonymous 01.02.2014 / 14:18

1 answer

1

If it is an ubuntu server you could use apt-get itself to do the installation

Ubuntu :

  sudo apt-get install yui-compressor

In another reference I found , the jar file was copied to the /usr/share/yui-compressor folder

  wget http://yui.zenfs.com/releases/yuicompressor/yuicompressor-2.4.6.zip

  unzip yuicompressor-2.4.6.zip

  mv yuicompressor-2.4.6/build/yuicompressor-2.4.6.jar /usr/share/yui-compressor/yui-compressor.jar

Then the file yui-compressor was created in /usr/bin/ , creating an environment variable to run your .jar file

#!/bin/sh
YUI_JAR=/usr/share/yui-compressor/yui-compressor.jar
java -jar $YUI_JAR "$*"

There are also several warnings to check your installed java version.

    
01.02.2014 / 15:03