Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001913graphvizDotpublic2010-06-21 16:492011-04-28 04:03
ReporterJavier Ortiz 
Assigned Toerg 
PlatformOS*-Windows-XP SP2OS Version
Summary0001913: dot.exe not available from ant

For some reason the dot.exe is not available to ant.
I've been trying to follow this tutorial: [^] and [^]
but I can't get it to work. I get this error:
Generating Z:\Netbeans\jWrestling Project\jWrestling\dist\javadoc\stylesheet.css...
UmlGraphDoc version 5.3, altering javadocs
Building Package view for package games.jwrestling.common Cannot run program "dot": CreateProcess error=2, The system cannot find the file specified
        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(

THe weird thing is that trying dot -V from the command promot is working.
Steps To Reproduce

 <mkdir dir="${dist.javadoc.dir}"/>
        <javadoc source="${javac.source}" packagenames="games.*" destdir="${dist.javadoc.dir}" private="true">
                <path path="${javac.classpath}"/>
            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
                <filename name="**/*.java"/>
            <doclet name="org.umlgraph.doclet.UmlGraphDoc" path="${file.reference.UmlGraph-5.3.jar}">
                <param name="-attributes" />
                <param name="-operations" />
                <param name="-qualify" />
                <param name="-types" />
                <param name="-visibility" />
Additional Information

[erg] The ant code apparently can't find where dot is installed. Not our problem.

The only instructions are to have it in the class path and it is (the installer takes care of that). The weird thing is that dot is found from the command prompt.

I couldn't find a verification step from Graphviz to make sure is properly installed either.

Since you can run dot from the command prompt, it is obviously installed correctly, and runs okay. So the problem
must be how
   <apply executable="dot" dest="${reports.dir}" parallel="false">

looks for and executes dot. For that, you'll need to contact an ant person or someone familiar with the semantics of <apply>.

TagsNo tags attached.
VERSION     2.26.3
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg

MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker