原文链接:http://jingyan.baidu.com/article/9c69d48f48026813c9024e16.html
http://jingyan.baidu.com/article/ab69b270a598202ca7189f0a.html
http://blog.163.com/logowx@126/blog/static/6256726420096259420870/
常出现下面的问题:
Note:An exception occurred while getting the javadoc.see log for details.
Note:This element neither has attached source nor attached Javadoc and hence no information could be found.
Note:This element has no attached source and the javadoc could not be found in the attached javadoc
点击javadoc下的open input:
class editor提示找不到对应的rt.jar文件。
you can attach the source by clicking attach source below
那么,点击“attach source”,加载相应文件即可:
选择External file:
如果你安装jdk的话,附加文件的路径是:
C:\Program Files\Java\jdk1.6.0_12\src.zip
OK!一切正常了:
祝好运……
http://xu7382.blog.163.com/blog/static/27716135200991524316267/
This element has no attached source and the Javadoc could not be found in the attached Javadoc。
【注意:此元素没有附加源代码,也无法在附加的 Javadoc 中找到 Javadoc。】
解决方法:
用eclipse时,用鼠标在代码上移动时,尤其是当鼠标移动到方法名上的时候,就会在鼠标附近自动弹出一个信息栏,里面写着这个方法是在哪个类里定义的,以及这个方法的类型,注释。
今天打开Eclipse发现把鼠标悬停在某个系统类上不再弹出这些提示了,并给出如下的提示:
Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc
这样的问题怎么解决?
在主菜单栏中,选择【Window】-->【Preferences】子菜单;
在【General】-->【Editors】--->【File Associations】;
在右侧【File types】点【Add...】按钮在弹出的对话框中输入*.doc后缀名,点击确定就可以了。
当然,如果有些朋友嫌突然弹出的窗口妨碍视线还影响思路,关闭方法如下:
Window(窗口)->Preferences(首选项)->Java->Editor(编辑器)->Hovers(悬浮提示) 将[Combined Hover](组合的悬浮提示)取消即可 。