Calling a java program from another
How do i call a Java command from a stand alone java program. I understand that Runtime.getRuntime().exec("cmd c/ javac <>.java"); would work. However, this would be platform specific. Any other APIs available that could make it work in j2sdk1.4 ? If you can run everything in the same JVM, you could do something like this: public class Launcher { ... public static void main(String[] args) throws Exception { launch(Class.forName(args[0]), programArgs(args, 1)); } protected static void launch(Class program, String[] args) throws Exception { Method main = program.getMethod("main", new Class[]