简体   繁体   English

蚀基本方法文档未显示

[英]eclipse basic methods documentation not showing

I have had this problem for a while. 我有这个问题一段时间了。 The methods in classes like String or date in eclipse do not have documentation, and when the suggestions pop up, the methods' names appear but their arguments are all like arg0 , arg1 etc... But this problem seems to be only in eclipse, in netbeans the docs and args are showing correctly. 像String或eclipse中的date这样的类中的方法没有文档,当弹出建议时,这些方法的名称会出现,但是它们的参数都像arg0,arg1等。但是这个问题似乎只在eclipse中,在netbeans中,文档和参数正确显示。

I am using jdk 1.8.0_05. 我正在使用jdk 1.8.0_05。

this is what it looks like in eclipse 这就是日食的样子

在此处输入图片说明

A comparison: 一个对比:

http://image.noelshack.com/fichiers/2014/50/1418459824-nojavadoceclipse.png

Can you try to go into the source code of jdk, eg java.lang.String , maybe eclipse didn't find the source code. 您能否尝试进入jdk的源代码,例如java.lang.String ,也许eclipse找不到源代码。

If you can't go into source code, then make sure your eclipse project is using a jdk that has source code, other than the default ones from eclipse itself which don't contain source code by default. 如果您无法进入源代码,那么请确保您的eclipse项目使用的是具有源代码的jdk,而不是eclipse本身的默认代码(默认情况下不包含源代码)。

If the above case is your case, then try download a jdk from oracle, install it, then in eclipse, config jdk installations, and set your project to use that new jdk. 如果您遇到上述情况,请尝试从oracle下载jdk,进行安装,然后在eclipse中配置config jdk,然后将项目设置为使用该新jdk。

If you don't want to install another jdk by hand, you can find the src.zip file from internet, then copy to local, and specify the location in eclipse. 如果您不想手动安装另一个jdk,则可以从Internet找到src.zip文件,然后将其复制到本地,并在eclipse中指定位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM