Compiling c++ file from java
<p>My problem regards to compiling c++ file within java. I have tried execution of c#, it is fine. 
This extract code for compiling c#</p>

<pre><code>ProcessBuilder launcher = new ProcessBuilder("gmcs","HelloWorld.cs");`
</code></pre>

<p>However, my code for c++</p>

<pre><code>ProcessBuilder launcher =new ProcessBuilder("g++", "HelloWorld.cpp -o HelloWorld");
</code></pre>

<p>returns error=2, No such file or directory
To indicate path I used<br>
<code>launcher.directory(new File(path))</code> 
in both of cases</p>
