This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot run program "dot"

 
rsheyeah hussain
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,

/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/graphviz/bin/dot:/opt/subversion/bin:/usr/X11/bin:/Users/lonmc021/Documents/devt/grails/grails-1.3.1/bin:/Users/lonmc021/Documents/devt/ant/apache-ant-1.7.1/bin:/Users/lonmc021/Documents/devt/groovy/groovy-1.7.2/bin:/Users/lonmc021/Documents/devt/maven/apache-maven-2.2.1/bin:/Library/Java/Home/bin

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


java.io.IOException: Cannot run program "dot": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at org.umlgraph.doclet.UmlGraphDoc.runGraphviz(UmlGraphDoc.java:144)
at org.umlgraph.doclet.UmlGraphDoc.generatePackageDiagrams(UmlGraphDoc.java:99)
at org.umlgraph.doclet.UmlGraphDoc.start(UmlGraphDoc.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
at com.sun.tools.javadoc.Start.begin(Start.java:128)
at com.sun.tools.javadoc.Main.execute(Main.java:41)
at com.sun.tools.javadoc.Main.main(Main.java:31)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 15 more

Any clues ?
Screen shot 2011-06-28 at 12.36.13 (2).png
[Thumbnail for Screen shot 2011-06-28 at 12.36.13 (2).png]
Screen shot 2011-06-28 at 12.37.11.png
[Thumbnail for Screen shot 2011-06-28 at 12.37.11.png]
Screen shot 2011-06-28 at 12.39.44 (2).png
[Thumbnail for Screen shot 2011-06-28 at 12.39.44 (2).png]
 
Jan Cumps
Bartender
Posts: 2577
11
C++ Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at section "Make Graphviz available" on this site:
http://yax.sourceforge.net/articles/firstSteps.html

And check if you have met all installation requirements: http://www.umlgraph.org/doc/install.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic