title: Symfony2 assetic:dump | error Output: "The system cannot find the path specified"
body: <p>I downloaded <a href="https://github.com/yui/yuicompressor/releases" rel="nofollow noreferrer">yuicompressor-2.4.8.jar</a> and placed it in <code>app/Resources/java/</code> folder.</p>
  
  <p>Next I created the <code>{% stylesheets %}</code> block in my twig template as in example below:</p>
  
  <pre><code>{% stylesheets 
      'bundles/arsen/css/style.css'
      filter='cssrewrite, yui_css'
      output='assets/css/complied.css'
  %}
      &lt;link rel="stylesheet" type="text/css" href="{{ asset_url }}"&gt;
  {% endstylesheets %}
  </code></pre>
  
  <p>When I run <code>app/console assetic:dump</code>, I get this error: </p>
  
  <pre><code>  "/usr/bin/java" "-jar" "C:\xampp\htdocs\Symfony27\app/Resources/java/yuicompressor-2.4.8.jar" "--charset" "UTF-8" "-o" "C:\Users\SYMFONY\AppData\Local\Temp\ass2341.tmp" "--type" "css" "C:\Users\SYMFONY\AppData\Local\Temp\ass2340.tmp"
    Error Output:                                                                                                                                                                                                   
    The system cannot find the path specified.  
  </code></pre>
  
  <p>As far I know, I have java jre installed and I have access to java from command line:</p>
  
  <pre><code>$ java -version
  java version "1.8.0_73"
  Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
  Java HotSpot(TM) Client VM (build 25.73-b02, mixed mode, sharing)
  </code></pre>
  
  <p>And in my windows path I have:
  C:\ProgramData\Oracle\Java\javapath registered
  This path points here:
  <a href="https://i.stack.imgur.com/dHoBE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dHoBE.png" alt="enter image description here"></a></p>
  
  <p>Paths looks fine to me.
  Does anyone know what is missing or where is the issue preventing <code>app/console assetic:dump</code> command  from working? </p>
  
  <p>Perhaps this setting causes the issue <code>app/config/config.yml</code>:</p>
  
  <pre><code>assetic:
      #...
      #java: /usr/bin/java
      filters:
          cssrewrite: ~
          yui_css:
              jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.8.jar"
              #...
  </code></pre>