How to view Javadoc in Eclipse?

感情迁移 提交于 2019-12-05 01:47:08

Add only app.jar to the Referenced Libraries.

then, go to Project Explorer, right click on the jar file-> Properties -> Javadoc Location and add Javadoc jar location (app-javadoc.jar).

If you want to also browse the source code, then go to 'Java Source attachment' in the same dialog box and add the app-sources.jar there.

I think you should set the javadoc location to the library itself but not the Project's javadoc location property.

Project > Properties > Java Build Path > Libraries expand the app.jar node and select the "Javadoc location" sub node and you can see the "Edit" button at the right of the library tree is enabled. Then click the "Edit" button and you can choose your javadoc in a jar file.

I am using Eclipse not MyEclipse but I think they are similiar. FYI

Here is an answer as of 2016-05-12:

In the Eclipse Project Explorer, under Referenced Libraries, right click on the jar file for which you require documentation. In the present example I require documentation for the Apache Commons IO library.

Select Properties. Then select Javadoc Location:

In the case that I am considering--the Apache Commons IO library--the javadoc jar file is stored in the same directory as the library jar file. In the Properties dialog, select Javadoc in Archive, navigate to the relevant directory, and click on the javadoc jar file:

Click Open, click OK, and you're done. As shown below, when you hover your cursor over an Apache Commons IO class name the javadoc appears:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!