javadoc:“程序包[...]不存在"没有文档的外部参考 [英] javadoc: "package [...] does not exist" for external references without docs

查看:168
本文介绍了javadoc:“程序包[...]不存在"没有文档的外部参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用javadoc生成我的文档.我有自己的课程,并且有两个外部jar:

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

  • 简单的json,我拥有源代码并可以生成javadocs
  • 一个专有库,我没有机会获得源代码或文档.

运行javadoc工具时,出现多个错误:

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

  • " 程序包[...]不存在"每当我导入外部库的类时.
  • " 找不到符号[...] "每当我使用外部库的类时.
  • "package [...] does not exist" whenever I import a class of the external libraries.
  • "cannot find symbol [...]" whenever I use a class of the external libraries.

这当然是正确的,因为javadoc不知道在哪里可以找到这些类的源代码或文档.

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.

如何解决或排除错误?

推荐答案

我找到了解决问题的方法.我只需要将外部库添加到类路径,如下所述:
Javadoc文档:类路径
示例: -classpath D:/folder/lib.jar

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

这篇关于javadoc:“程序包[...]不存在"没有文档的外部参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆