Oct 12, 2000 #1 viclap Programmer Oct 12, 2000 39 PH Hi to all, How do I run an external program locally in Java similar to run or shell commands in other programming languages? Thanks in advance. [sig][/sig]
Hi to all, How do I run an external program locally in Java similar to run or shell commands in other programming languages? Thanks in advance. [sig][/sig]
Oct 13, 2000 #2 jnicho02 Programmer Jul 20, 1999 397 GB Use java.lang.Runtime.... [tt]try { [tab]Runtime.getRuntime().exec("program.exe" } catch (java.io.IOException ex) { [tab]System.out.println("IO Exception!" } [/tt] [sig]<p> <br><a href=mailto: > </a><br><a href=http://www.geocities.com/jnicho02/>my home</a><br> [/sig] Upvote 0 Downvote
Use java.lang.Runtime.... [tt]try { [tab]Runtime.getRuntime().exec("program.exe" } catch (java.io.IOException ex) { [tab]System.out.println("IO Exception!" } [/tt] [sig]<p> <br><a href=mailto: > </a><br><a href=http://www.geocities.com/jnicho02/>my home</a><br> [/sig]
Oct 13, 2000 Thread starter #3 viclap Programmer Oct 12, 2000 39 PH Thank you very much......I'll try it.... [sig][/sig] Upvote 0 Downvote