title: How do you run an external program in node.js on windows?
body: <p>I'm creating an automated web app build process with node.js on windows. I'm trying to run our code through Google closure java program. I read the documentation on child_process in the node documents. It mentions it doesnt work in windows yet. Is there a package or work around for this?</p>
  
  <p>Heres the code im trying to run.</p>
  
  <pre><code>var _exec = require('child_process').exec;
  _exec( 'java ' + '-jar '+ COMPILER_JAR +' --js '+ srcPath +' --js_output_file '+ distPath, 
      function(e){
          echo( "google closure done....");
          echo( e );
      } );
  </code></pre>