Hello!
i dont'succeed in doing the command "cd" then doing the command "java".
Indeed this code doesn't work (it makes nothing):
try{
Process p1 = Runtime.getRuntime().exec("cd "+rep);
try{
p1.waitFor();
}
}
catch(InterruptedException ire){}
Process p2 = Runtime.getRuntime().exec("java "+nameOfProg);
try{
p2.waitFor();
}
catch(InterruptedException ire){}
catch(IOException ioe){}
I have vefified tyhe command of cd and the command of
java and they work when i'm in the console
Help please !!!