I have a custom doclet class that works on a source java file and produce a .properties file. The doclet file depends on number of other java classes and i have jarred them up in my-classes.jar and added them on the class path.
The -outputfile and -command are the arguments expected by my doclet. So the command that I am running is:
This is present in a shell script and I am running the script. But I am geting a javadoc: Cannot find doclet class error.
Can any one help.
SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ] Performance is a compulsion, not a option, if my existence is to be justified.
First of all -cp is not a valid option for javadoc (atleast documented). Then you have to understand how -docletpath and -classpath is used internally.
-docletpath is the classpath to the classes related to the doclet itself and -classpath is the classpath to the classes being processed by your doclet. So in your case, the my-classes.jar file should be part of -docletpath.
The correct command seems to be (I didn't execute though),