3 Replies Last post: Feb 26, 2013 9:14 PM by Andriy Bazanov  
Volodymyr Kotulskyi Newbie 8 posts since
Feb 15, 2011
Currently Being Moderated

Feb 26, 2013 7:47 PM

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 http://closure-compiler.googlecode.com/files/compiler-latest.zip 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

Elena Shaverdova JetBrains 192 posts since
Oct 13, 2010
Currently Being Moderated
Feb 26, 2013 7:55 PM in response to: Volodymyr Kotulskyi
Re: Add Google Closure Compliller to External Tools

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$

Andriy Bazanov Master 3,915 posts since
May 28, 2010
Currently Being Moderated
Feb 26, 2013 9:14 PM in response to: Volodymyr Kotulskyi
Re: Add Google Closure Compliller to External Tools

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

More Like This

  • Retrieving data ...