title: Cannot call perl script from Java
body: <p>When I'm trying to run a perl script from my main java application:</p>
  
  <pre><code>            try {
                  ProcessBuilder pb = new ProcessBuilder(path+"\\script.pl");
                  Process p = pb.start();     // Start the process.
                  p.waitFor();                // Wait for the process to finish.
                  System.out.println("Script executed successfully");
                } catch (Exception e) {
                  e.printStackTrace();
                  }
  
              }
  </code></pre>
  
  <p>I get the following error (not a valid win32 app):</p>
  
  <p>java.io.IOException: Cannot run program "C:\workspace\kepler\Alert_Handler\target\test-classes\script.pl": CreateProcess error=193, %1 no es una aplicación Win32 válida
  at java.lang.ProcessBuilder.start(Unknown Source)</p>