Eclipse how to link a jar containing javadocs/source with its binary?

后端 未结 5 1306
南旧
南旧 2020-12-04 08:19

I would like to have the javadoc comments contained in a jar file show in eclipse when I hover over a class.

For example, after downloading JODA-2.0, three jars are

5条回答
  •  独厮守ぢ
    2020-12-04 08:54

    You can try to CTRL + click on a class that has no source attached (do that in editor). When it shows you some info about the class you'll see the button that guides to attach source dialog. Click it and in dialog that pops up pick the source/javadoc location for your class.

    You can also do that from project build path settings you are mentioning: pick libraries tab, expand the library (jar) you want and you'll be offered to pick: source attachment, javadoc attachment, native library location, etc. You just pick whatever you want and edit its current settings.

    Or you can do as @JB Nizet said...

提交回复
热议问题