本文主要是介绍This element neither has attached source nor attached Javadoc,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
像Microsoft Visual Studio一样,使用Eclipse编写java代码时,将鼠标放在相应方法或字段等元素上时,会有对应的说明或提示。
不过,常出现下面的问题:
Note:An exception occurred while getting thejavadoc.see log for details.
Note:This
Note:This element has no attached source andthe javadoc could not be found in the attached javadoc
点击javadoc下的open input:
class editor提示找不到对应的rt.jar文件。
you can attach the source by clicking attachsource below
那么,点击“attach source”,加载相应文件即可:
选择External file:
如果你安装jdk的话,附加文件的路径是:
C:\Program Files\Java\jdk1.6.0_12\src.zip
OK!一切正常了:
祝好运……
转自:http://blog.sina.com.cn/s/blog_7fd6009f0100svga.html
这篇关于This element neither has attached source nor attached Javadoc的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!