Execute *.exe in current package and run it
<p>I can't seem to figure this out? I wan;t to execute dec.exe with param</p>

<p>Here my file structure: </p>

<p><img src="http://i.stack.imgur.com/VegGS.png" alt="structure"></p>

<p>Here my code that i'm using on mouse click.</p>

<pre><code>Process process = null; 

try { 

    process = new ProcessBuilder("dec.exe",idir,odir).start(); 

} catch (IOException e2) { e2.printStackTrace(); } 

InputStream is = process.getInputStream(); 
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new  BufferedReader(isr); 

String line; 
String total = "";

try { 
    while ((line = br.readLine()) != null) { 
        total += line;
        txtrAsdasda.setText(total);
    }
} 

} catch (IOException e1) { e1.printStackTrace(); }
</code></pre>

<hr>

<p><strong>I get the following error:</strong> </p>

<pre><code>Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at java.lang.ProcessBuilder.start(Unknown Source)
    at pw.ConverterUIApp$3.actionPerformed(ConverterUIApp.java:128)

...
</code></pre>

<p>and</p>

<pre><code>java.io.IOException: Cannot run program "dec.exe": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
</code></pre>
