I have a javadoc doclet that requires an additional jar file to be on the doclet's classpath. To run the doclet from the command line, I do something like this:
java com.sun.tools.javadoc.Main -doclet myPackage.myDoclet -docletpath /path/to/doclet/classes
When I run that, it finds the doclet on the path and executes it, but the doclet uses an additional jar that needs to be on the classpath, so eventually, I get a ClassNotFoundException.
When I change the command line to this:
java com.sun.tools.javadoc.Main -doclet myPackage.myDoclet -docletpath /path/to/doclet/classes:/path/to/some.jar
It no longer finds the doclet (javadoc: error - Cannot find doclet class com.adventact.si.workflow.javadoc.ListClass
). So, it appears that the doclet argument does not accept a list of paths, but only a single one.
(note that these command lines aren't complete - I'm not showing how I set the classpath, as it's irrelevant to the docletpath problem, and is really spammy.)
How do you workaround this?