• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

using javadoc tool.

 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i solved it some how.
thanks for your time
 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic