Sadret
Sadret

Reputation: 331

javadoc: "package [...] does not exist" for external references without docs

I am using javadoc to generate my documentation. I have my own classes, and two external jars:

When I run the javadoc tool, I get multiple errors:

This is of course correct, as javadoc has no idea where to find sources or docs for these classes.

But, I do not want these messages to show, as I want to be able to recognize at first glance, if everything worked as intended. Right now, I have to look through hundred lines of "known errors" to find any other errors or warnings.

How can I fix or suppress the errors?

Upvotes: 13

Views: 8817

Answers (1)

Sadret
Sadret

Reputation: 331

I found the solution to my problem. I just needed to add the external libraries to the classpath, as described here:
Javadoc Documentation: classpath
Example: -classpath D:/folder/lib.jar

Upvotes: 8

Related Questions