File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Cannot run program "dot"" Watch "Cannot run program "dot"" New topic
Author

Cannot run program "dot"

rsheyeah hussain
Greenhorn

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,

/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 ?


[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
Bartender

Joined: Dec 20, 2006
Posts: 2510
    
  10

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


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot run program "dot"