Compile java by another java and save the class file in a spec location.
Hi,
I want to compile a java program by another java program and save the resultant class file into a specific location. But I could get the class file in the same location where the main class exist. but i want the class file in some other location.
I was tried like this,
Runtime.getRuntime().exec("javac processInput.java /c c:\\test");
Please give me the solution for this.
Thanks in advance.
Regards,
Gandhiraj G.

