Add Google Closure Compliller to External Tools

I am trying to add Google Closure compiller as External tool to WebStorm IDE.
I downloaded it from and unzipped into C:\DevTools\closure-compiler\
Here is the settings I used to add it as External Tool

Name: Closure Compiller
Program:  "C:\Program Files\Java\jdk1.6.0_27\bin\java.exe" -jar C:\DevTools\closure-compiler\compiler.jar
Parameters: --js $FileName$ --js_output_file $FileNameWithoutExtension$.min.$FileExt$ --compilation_level SIMPLE_OPTIMIZATIONS
WorkingDirectory: $FileDir$

Here is the error I got when I try to run it
Error running Closure Compiller: Cannot run program "\"C:\Program Files\Java\jdk1.6.0_27\bin\java.exe\" -jar C:\DevTools\closure-compiler\compiler.jar": CreateProcess error=5, Îòêàçàíî â äîñòóïå
Closure Tools.png


Please try the following configuration:
Program:  C:\Program Files\Java\jdk1.6.0_27\bin\java.exe
Parameters: -jar C:\DevTools\closure-compiler\compiler.jar --js $FileName$ --js_output_file $FileNameWithoutExtension$.min.$FileExt$ --compilation_level SIMPLE_OPTIMIZATIONS
WorkingDirectory: $FileDir$


If you are using v6 EAP build then you can have automatic compilation on Save using File Watchers plugin


Please sign in to leave a comment.