Hi, I'd like to know how I can run native windows applications such as netstat.exe from java code. In particular I am interested in having a java GUI display the results of a command such as netstat -a. Does this invlove using the JNI interface? Your comments are much appreciated.
posted 12 years ago
U can run exe's from Java program with the following snippet of code
Runtime rt = Runtime.getRuntime(); Process run = rt.exec("exefilename arguments"); run.waitFor();