The code below doesn't work using a Runtime execution in eclipse but the same works using Command Line execution from the root directory of the eclipse project. I have tried different commands such as creating a textfile using notepad which also works using Runtime. But the below command doesn't work. Is there any particular reason for it?
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("dot -Tpng output//vowelWithGainRatio.dot > output.png");
output is the directory where the .dot file is present. The command works based on Graphviz Graphics Visualization Software.