You need to compile the ListClass file. Sort of:
javac -d . ListClass.java -cp /path/to/tools.jar
Doclet classes are part of the jar toolkit, so you will need to include it in your compilation time dependency.
Then your team
javadoc -doclet ListClass -docletpath . MyClass.java
must work.
change
For your project structure, if you are compiling from the root directory, be sure to link to your files through your subdirectories and make sure that any absolute Windows paths are double:
javac -d . ./src/ListClass.java -cp "C:/Program Files/Java/jdk1.8.0_66/lib/tools.jar"
This will create a compiled ListClass file in the root of the project, and from there it will use your javadoc command:
javadoc -doclet ListClass -docletpath . ./src/MyClass.java
It would be better to create a class catalog to host the compiled classes, rather than at the root of the project, but I just work with the structure you provided. See the documentation for javac and javadoc for more information.
source share