How to get Java API Javadocs to show up in Eclipse in Ubuntu

前端 未结 5 1239
傲寒
傲寒 2021-02-14 15:49

I\'m here again with a docs question. At my university, when using Eclipse, when placing the cursor over a Java API method name (for example: .size() ), I get very nice documen

5条回答
  •  星月不相逢
    2021-02-14 16:41

    1. Download Java sourece. i get it from http://download.java.net/openjdk/jdk8/

    2.Go to Window > Preferences > Java > Installed JREs

    Select the installed JDK and double click on it, a edit JRE window will get open.

    1. select rt.jar click add source and and select the patch where you have downloaded java source in step 1.

    2. then exit by clicking OK/ Finish

提交回复
热议问题