Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes OO, Patterns, UML and Refactoring and the fly likes Cannot run program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Cannot run program "dot"" Watch "Cannot run program "dot"" New topic

Cannot run program "dot"

rsheyeah hussain

Joined: Jan 10, 2010
Posts: 11
I am trying to reverse engineer Java to UML . I am running on OS 10.6. I am using UMLGraph.jar. I have set the dot in my classpath and it shows up , when i do echo $PATH,


I am still getting the below error when i run Generate Java DOC from eclipse:
Doclet name: org.umlgraph.doclet.UmlGraphDoc
Doclet class path: /Users/lonmc021/Documents/devt/TropicsWS/Tropics/UmlGraph.jar Cannot run program "dot": error=2, No such file or directory
at java.lang.ProcessBuilder.start(
at java.lang.Runtime.exec(
at java.lang.Runtime.exec(
at org.umlgraph.doclet.UmlGraphDoc.runGraphviz(
at org.umlgraph.doclet.UmlGraphDoc.generatePackageDiagrams(
at org.umlgraph.doclet.UmlGraphDoc.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
Caused by: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(
at java.lang.ProcessImpl.start(
at java.lang.ProcessBuilder.start(
... 15 more

Any clues ?

[Thumbnail for Screen shot 2011-06-28 at 12.36.13 (2).png]

[Thumbnail for Screen shot 2011-06-28 at 12.37.11.png]

[Thumbnail for Screen shot 2011-06-28 at 12.39.44 (2).png]

Jan Cumps

Joined: Dec 20, 2006
Posts: 2532

Look at section "Make Graphviz available" on this site:

And check if you have met all installation requirements:

OCUP UML fundamental and ITIL foundation
youtube channel
Have you tried LearnNowOnline?
subject: Cannot run program "dot"