Why do I get an exception java.lang.NoClassDefFoundError: com/sun/tools/javadoc/Main?
This exception will occur when you execute UMLGraph directly as a jar (not throughjavadoc), and the files UmlGraph.jar and tools.jar are not in the same directory. Either copy UmlGraph.jar in the directory where the tools.jar of the JDK distribution is located (and execute UmlGraph.jar from there), or copy tools.jar to the directory where UmlGraph.jar is located.
Related Questions
- Why am I getting a "java.lang.NoClassDefFoundError com/debugtools/jdebugtool/Main" exception when trying to invoke JDebugTool?
- Why do I get "Exception in thread main java.lang.NoClassDefFoundError:" when trying to run my first Java Sound program?
- Why do I get Exception in thread "main" java.lang.NoClassDefFoundError:edu/stanford/nlp/tagger/maxent/MaxentTagger?