Yii2 compression of Assets not working, get Error when running and stops

I want to my assets but nothing is working . I am on windows 10.

Here is my :




Yii::setAlias('@webroot',realpath(__DIR__ . '/../../public_html'));

 Yii::setAlias('@web', '/');


return [

    // Adjust command/callback for JavaScript files :

    'jsCompressor' => 'java -jar //closurecompilerv20160911.jar --js {from} --js_output_file {to}',

    // Adjust command/callback for CSS files :

    'cssCompressor' => 'java -jar //yuicompressor2.4.8.jar --type css {from} -o {to}',

    // The list of asset bundles to :

    'bundles' => [

         'app\\AppAsset',

        'yii\widgets\ActiveFormAsset',

        'yii\grid\GridViewAsset',

        'yii\validators\ValidationAsset',

    ],

    // Asset bundle for  output:

    'targets' => [

        'app\\\\CompressedAsset' => [

            'class' => 'yii\web\AssetBundle',

            'basePath' =>  '@webroot',

            'baseUrl' => '@web',

            'js' => 'js/all-{hash}.js',

            'css' => 'css/all-{hash}.css',

        ],

    ],

    // Asset manager :

    'assetManager' => [

        'basePath' => '@webroot/js',

        'baseUrl' => '@web/css',

    ],

];

And the is starting from :

Is there any solution?

This is a bug on Windows. Try to use a older version of YUICompressor