What methods to use to compile/run a program in another program at runtime??
Thanks for any replies.
Kah Yee
[email protected]
Printable View
What methods to use to compile/run a program in another program at runtime??
Thanks for any replies.
Kah Yee
[email protected]
Use the java.lang.Runtime class
String s = "javac Test.java";
Runtime r = Runtime.getRuntime();
r.exec(s);