Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 119839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:42:59+00:00 2026-05-11T03:42:59+00:00

I have a javadoc doclet that requires an additional jar file to be on

  • 0

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?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:43:00+00:00Added an answer on May 11, 2026 at 3:43 am

    The documentation for Javadoc says that a list of paths is allowed. Ensure that you’re using the correct path-separating character, either ‘;’ or ‘:’ depending on whether you’re on Windows or UNIX (respectively).

    NOTE: If you’re truly using java and not javadoc to execute your doclet, then check the implementation of your class. -docletpath is not a standard option to the java executable, so must be being interpreted by your doclet implementation. However, if you’re using javadoc then the documentation I pointed to above says:

    If classpathlist contains multiple paths or jar files, they should be separated with a colon (:) on Solaris and a semi-colon (;) on Windows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have the javadoc comments contained in a jar file show
I have a situation where I'd like to execute javadoc in a project that
I'd like to have my checkstyle configured so that it verifies all my javadoc
I have a core Web-Base.jar file that has shared components that I use in
I have commented my java source code with javadoc using tags like {@see myPackage.MyClass}.
I would like to have the cursor in the JavaDoc area when creating interfaces,
Possible Duplicate: Regex for matching javadoc fragments I have files having content like /**
I have one class and in Netbeans 7.0.1 I've inserted that class Javadoc For
I have created my iPhone App and i must do a document like javaDoc
If I have a synchronized collection like this Collection c = Collections.synchronizedCollection(myCollection); javadoc for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.