I need to write a java program which when executed pushes a command into the terminal
I tried using runtime.exec(); but not working fine for me
what i want is "/home/raj/Desktop/java -jar test.jar" to be executed in terminal
Can any one help me to sort it out.
I tried using runtime.exec();
can you please expand on this? – npintiRuntime.exec()
is the way to do it. Why is it failing for you? Are you getting any exceptiion? – Dandy