29 Oct 2008 at 21:45 #1 Energize Energize Caporegime Joined 12 Mar 2004 Posts 29,962 Location England How do I execute an external program, eg the command line from within a java program?
29 Oct 2008 at 22:29 #2 Fourstar Fourstar Associate Joined 17 Oct 2002 Posts 2,177 Location London I was about to say exec but searching for a tutorial I see java 5 introduced the ProcessBuilder. Here is an article demonstrating both: http://www.java-tips.org/java-se-tips/java.util/from-runtime.exec-to-processbuilder.html
I was about to say exec but searching for a tutorial I see java 5 introduced the ProcessBuilder. Here is an article demonstrating both: http://www.java-tips.org/java-se-tips/java.util/from-runtime.exec-to-processbuilder.html