Help for getting output of Runtime.getRuntime().exec()
divya g nair
Joined: Jan 12, 2009
I have executed the following command to compile a java program.
Runtime.getRuntime().exec("cmd/c start C:/jdk1.4/BIN/javac filename.java");
i got the class files if there is no errors. But I want to read the errorlist if there any.
My code is like this Anyone can help me please.
thanks in advance
Joined: Mar 22, 2005
You may want to read in this article to learn about all the issues you need to be aware of when dealing with Runtime.exec.