Missing basic JavaDoc in Eclipse

后端 未结 5 1185
逝去的感伤
逝去的感伤 2021-02-19 16:40

Up to a few days ago, Eclipse was working fine in locating the javadoc for base classes such as Java.io.File. Recently, though, hovering over these classes only yields a message

5条回答
  •  庸人自扰
    2021-02-19 16:52

    The best way to do it is Go to Project > Properties > Java Build Path > Libraries and expand JRE System Library [your jre version] then, rt.jar. Select Source attachment, click Edit…. Select the source code file (External File…) and press OK.

    Other ways to attach java source code is mentioned in this link

    http://www.cavdar.net/2008/07/14/3-ways-of-jdk-source-code-attachment-in-eclipse/

提交回复
热议问题