Possible Duplicate:
Executing another java program from our java program
I wanted to execute another java program from our java program. When i run a java program called 'First.java', it should prompt the user to enter the name of any class name(.java file name) and then it should read that input(.java file) and should be able to compile and run that program.Can anyone give me a sample code for that?