Myeclipse Source not found 以及 调用javadoc的问题

原文链接: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

error

javadocerror

点击javadoc下的open input:

2

class editor提示找不到对应的rt.jar文件。

you can attach the source by clicking attach source below

那么,点击“attach source”,加载相应文件即可:

source attach

选择External file:

如果你安装jdk的话,附加文件的路径是:

C:\Program Files\Java\jdk1.6.0_12\src.zip

jdksrc

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](组合的悬浮提示)取消即可 。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值