I am trying to generate a graph from a .dot file using the Graphviz tool. To do this, within a Java application, I am invoking the command prompt by navigating to the Graphviz installation folder and entering the command as follows:
String cd= "cd C:\Program Files (x86)\Graphviz2.36\bin";
String comando = " dot -Tpng (...)saidaDot.dot -o (..)out.png ";
Runtime.getRuntime().exec( "cmd.exe /C start cmd.exe /C "+cd+comando);
Where (...) symbolizes the files directory.
The command prompt opens and closes quickly and I was not successful in generating the out.png file.
Does anyone have any idea where my error might be?