What is the correct way of executing a java command from RunTime.exec()
<p>I need to run command using Runtime.exec() :</p>

<pre><code>java -cp .:/s/v-lib/* tDesigner -inRs /scg.rsp -out /g.plan;
</code></pre>

<p>here i need to add all the jars present in /s/v-lib directory to my class path. 
Do i need to add them individually?</p>

<p><code>tDesigner</code> is my class.<br>
<code>-inRs /scg.rsp -out /g.plan</code> are the arguments to the class.</p>

<p>what will be the correct way to construct command string?<br>
is this correct:</p>

<pre><code>String[] command = {"java", "-cp", ".:/s/v-lib/*", "tDesigner" ,"-inRs", "/scg.rsp" ,"-out", "g.plan"};
</code></pre>
