Apache commons库文档没有显示出来

时间:2015-08-21 20:31:52

标签: java eclipse

我在Eclipse中添加了apache commons library jar文件和javadoc.jar文件:http://www.newthinktank.com/2012/01/how-to-install-java-libraries/。我可以使用该库,但是当我输入代码时,文档并没有显示出来。我该如何解决这个问题?

2 个答案:

答案 0 :(得分:1)

您不会将*-javadoc.jar*-sources.jar添加到类路径中,您可能不需要*-tests.jar

只需将commons-lang3-3.1.jar添加到类路径即可。然后,在“库”选项卡上,单击展开三角形。

双击“源附件”,选择“外部位置”,单击“外部文件...”,然后选择commons-lang3-3.1-sources.jar文件。单击“确定”。

双击“Javadoc location”,选择“Javadoc in archive”和“External File”,单击“Browse ...”并选择commons-lang3-3.1-javadoc.jar文件。单击“确定”。

答案 1 :(得分:-1)

重新启动Eclipse,如果文档仍然没有,则重新启动计算机。