Quote:
|
Originally Posted by freesoft_2000
Does anyone know how to compile and run a java program from a program? |
Is the program also written in Java?
See Runtime.getRuntime.exec().
http://java.sun.com/j2se/1.4.2/docs/...g/Runtime.html
In other languages, you'll have to look up how to call the system commands. C has a way to fork and pipe (unix C has an actual "system" command, windows probably also does, but I don't know the command name). C++ probably has a normal exec, similar to this.