码迷,mamicode.com
首页 > 编程语言 > 详细

【转载】解决使用Eclipse中调用javadoc的问题

时间:2014-12-06 22:51:08      阅读:424      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   ar   color   os   使用   sp   

出处:http://blog.163.com/logowx@126/blog/static/6256726420096259420870/

 

像Microsoft Visual Studio 一样,使用Eclipse编写java代码时,将鼠标放在相应方法或字段等元素上时,会有对应的说明或提示。

不过,常出现下面的问题:

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

bubuko.com,布布扣

bubuko.com,布布扣

点击javadoc下的open input:

bubuko.com,布布扣

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

you can attach the source by clicking attach source below

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

bubuko.com,布布扣

选择External file:

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

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

bubuko.com,布布扣

OK!一切正常了:

bubuko.com,布布扣

祝好运……

【转载】解决使用Eclipse中调用javadoc的问题

标签:style   blog   http   io   ar   color   os   使用   sp   

原文地址:http://www.cnblogs.com/hixin/p/4148862.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!