This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Cannot run program "dot"  RSS feed

 
Greenhorn
Posts: 11
  • 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]
 
Bartender
Posts: 2633
17
C++ Linux Netbeans IDE
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!