how to run a java program from another java program independently?
<p>I am running the code below. this runs the two instances of validity.jar as threads and main is not completed. I want to complete the main methods execution with out waiting for the completion of validity.jar. How can i do this? </p>

<pre><code>try
{         
    int counter = 0;
    while(counter &lt;2)
    {
        counter++;
        java.lang.Runtime.getRuntime().exec("java -jar C:\\validity.jar");
    }            
}   // try
catch(Exception e)
{
    e.printStackTrace();
}   // catch
</code></pre>
