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?
try
{
int counter = 0;
while(counter <2)
{
counter++;
java.lang.Runtime.getRuntime().exec("java -jar C:\\validity.jar");
}
} // try
catch(Exception e)
{
e.printStackTrace();
} // catch