how to run a java program using run.exec()?

how to run a java program using run.exec()?

Hi..i want to compile and run a java file using run.exec().i.e., without compiling and running from command prompt i want to do them in the program itself.I am able to compile the program but it is not executing.showing an error stating that file doesnot exist. can i expect a sample java program using run.exec(). Thanking you.

View Answers









Related Tutorials/Questions & Answers:

Ads