在Eclipse中缺少基本的JavaDoc [英] Missing basic JavaDoc in Eclipse

查看:1123
本文介绍了在Eclipse中缺少基本的JavaDoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直到几天前,Eclipse可以很好的找到java.io.File等基类的javadoc。但是,最近,悬停在这些类上只会产生一条消息,指出源和javadoc缺少:

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 indicating that the source and javadoc are missing:

注意:此元素没有附加源,Javadoc不能在附加的Javadoc中找到。

"Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc."

我的生活中找不到可以重新选择基本文档的位置的选项。有没有人知道如何解决这个问题?

I couldn't for the life of me locate the option that would let me reselect the location of the basic documentation. Does anyone know how to fix this?

推荐答案

展开您的JRE系统库并找到rt.jar(classes.jar for Mac OS X)。右键单击并选择属性。

Expand your JRE System library and find rt.jar (classes.jar for Mac OS X). Right click, and select 'Properties'.

然后,您可以指定Javadoc位置(以及源位置)。

You can then specify the Javadoc location (as well as the source location).

< img src =https://i.stack.imgur.com/QsJDA.pngalt =properties>

这篇关于在Eclipse中缺少基本的JavaDoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆