i want to execute ine
java program from java.
iam sending my code.please see this. is it correct.when i executing it is not displaying any
public class prs
{
public static void main(
String args[])
{
try
{
Runtime r=Runtime.getRuntime();
Process p=null;
p=r.exec("java Hastable1");//here Hastable1 is another java program
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
if this is not correct please tell me how to do this