Error dot command Ontoviz on Protege
March 21, 2009
—–Your Lovely Message
Java.IO.IOException : cannot run program “dot” : Create Process error =2 , The system can not find the file specified
—————————————————————————————–
Protege has plugin which has capability to show/visualize graph of ontology model. How to do that. Of course, you have to download the library Graphviz first. Once you downloaded this plugin then install it. Supposed that you installed it on C:/Program Files/Graphviz . Then download ontoviz-tab on Protege site. Ok, i assumed that you that have already installed that add-on and have followed the instructions in readme.txt included in installation directory. When you try to start Protege and open Ontoviz tab ( Goto Project -> Configure, then Configure Tab will appear and check Ontoviz) ,


and visualize model Tab it will not work and Graph will not show up. Whats wrong ? Hemm… please check at a command console on Protege. There is an error log when Protege trying to load Ontoviz-tab..
Java.IO.IOException : cannot run program “dot” : Create Process error =2 , The system can not find the file specified

That means that operating system (Windows) did not know what “dot” command is. That’s why, you have to tell to OS that dot command is located on C:\Program Files\graphviz\bin (for example)… How to do that?
By giving global path C:\Program Files\graphviz\bin in environtment variables. Go to Explorer, Right Click My Computer, choose Properties then Choose Advanced Tab, click Environtment Variables and add System Variables Path with ;C:\Program Files\graphviz\bin;


Now, Check if that’s working or not. I hope it works.
Before

After


