View Single Post
Old 12-01-2004, 07:53 AM   #4 (permalink)
kaeli69
Registered User
 
kaeli69's Avatar
 
Join Date: Apr 2003
Posts: 30
kaeli69 is an unknown quantity at this point
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.
kaeli69 is offline   Reply With Quote