• Post Reply Bookmark Topic Watch Topic
  • New Topic

using javadoc tool.  RSS feed

 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Santhosh Kumar
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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),

 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i solved it some how.
thanks for your time
 
Campbell Ritchie
Marshal
Posts: 56598
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Niranjan Deshpande:
i solved it some how.
thanks for your time
Well done
Please tell us briefly how you solved it, so others can learn when they have the same problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!