this is in execute method()
{
Process p = Runtime.getRuntime().exec(command, env);
}
System.out.println(r.execute(" C:\\Program Files\\Java\\jdk1.6.0_21\\bin\\javac demo.java” , null));
System.out.println(r.execute(" C:\\Program Files\\Java\\jdk1.6.0_21\\bin\\java demo”, null));
i want to run demo.java from this code i used timer class also.
i got the error "Illegal execution time" i dont know why
when i run this program in eclipse it does not give me output
but when i run this on command prompt then it gives me error
can anyone help me
Thanks in advanced!!!!!!!!