`
hanyezhiyu8
  • 浏览: 153709 次
  • 性别: Icon_minigender_1
  • 来自: 沈阳
社区版块
存档分类
最新评论

[Java:Eclipse]source not found-Note:This element has no attached source and the

阅读更多

 

调试时出现 source not found


或者


当鼠标悬停在变量上时出现:

Note:This element has no attached source and the javadoc could not be found in the attached javadoc

 

上述原因分析:
没有找到相应的class,如Iterator.class。

因为如果jdk安装时环境变量设置正确的话,Eclipse能自动找到src.zip里面的源代码并附加上。

解决方法:
1. 或者点击Edit Source Lookup Path添加jdk安装包下的src.zip,

    如我的路径:D:\Program Files\Java\jdk1.6.0_23\src.zip,等待一会儿会自动找到所需要的class
2. 或者去debug configuration里面的source选项卡手工附加代码
3. 或者在工程属性-》java build path-》libraries,找到你的structs的包,是可以设置源代码的,把源代码路径指到你下载的src包

分享到:
评论

相关推荐

    ICS delphixe10源码版

    The origin of this software must not be misrepresented, you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product ...

    glibc-langpack-the-2.28-164.el8.x86_64.rpm

    官方离线安装包,测试可用。请使用rpm -ivh [rpm完整包名] 进行安装

    计算机网络第六版答案

    This document contains the solutions to review questions and problems for the 5th edition of Computer Networking: A Top-Down Approach by Jim Kurose and Keith Ross. These solutions are being made ...

    BURNINTEST--硬件检测工具

    - Minor changes to the No operation error watchdog timer for the CD and Hard disk tests. - Minor correction to the Butterfly seek test. - Video playback trace logging increased. Release 5.3 build ...

    DebugFactory3.zip

    1.If the attached CD-ROM has mechanical damages, you may replace it free of expense within ninety (90) days of the purchase date. 2.This product is designed for the evaluation of hardware and ...

    Sakemail

    Serge Wagener put me to work >:|1.8.4- Dmitry Bondarenko (again) has found a bug in wich I do not respect the RFC, wich say that replys from the SMTP server could be multi-line, and the previous ...

    java8集合源码-aws-certified-developer-associate:AWS认证开发人员助理-StephaneMaarek的

    java8集合源码aws-certified-developer-associate AWS 认证开发人员助理 - Stephane Maarek 的教程 (Udemy) 5. AWS 预算设置 计费仪表板 -> 预算 -> 创建预算 -> 成本预算 -> 名称:学习 AWS 预算金额:20 美元 配置...

    编程珠玑全部源代码 分享

    Code from Programming Pearls Column 1: Programs for sorting integers bitsort.c -- Sort ...You may use this code for any purpose, as long as you leave the copyright notice and book citation attached.

    Android帮助文件,documentation for android sdk API19

    Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found. 出现这个原因,一般是因为android.jar包的Javadoc文件的关联属性没有设置好。 可以进行如下操作: 1...

    Android Debug Bridge(安卓调试桥) tools platform-tools adb命令行工具

    List of devices attached 设备/模拟器未连接到 adb 或无响应 查看应用列表: 查看所有应用列表:adb shell pm list packages 查看系统应用列表:adb shell pm list packages -s 查看第三方应用列表:adb shell pm...

    MS-DOS 5.0

    see the APPNOTE.TXT file. 2. SOLVING SETUP PROBLEMS ========================= 2.1 Priam and Everex Hard Disks ------------------------------- If your hard disk contains a Priam or Everex hard disk...

    问题解决:Fragment not attached to Activity相关代码

    问题解决:Fragment not attached to Activity的相关代码,更多详细内容请参考:http://blog.csdn.net/u012939909/article/details/53355836

    linux 0.11 kernel开发包 适于进行Linux OS研究

    I have already attached the root floppy to the 'B:' diskette driver. The system will panic unpredicatablly. Use at your own risk! Changelog: ===================== 2004.3.29 Add gcc 1.40 & libs ...

    SSD7 选择题。Multiple-Choice

    (b) the name of the table, the names of the table's attributes, the data types of the table's attributes, the formats of the table's attributes, and the maximum number of rows that the table can have...

    MyExtRichTextBox是网络上使用比较广泛的自定义RichTextBox组件

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board ...

    机器学习之noisy or model

    However, it seems that noisy-or is an old topic and no much can be found via Google. Fortunately, I got a very brief description from an old paper "Possibility theory and the generalized Noisy OR ...

    au3反编译源码

    Well you may have unpacked/dumped the script exe-stub found out the exact original version, downloaded the original from the AutoIT site archive and now compare the original stub aka AutoItSC.bin ...

    oracle primavera unifier 21.12 新特征功能清单

    Unifier 20.12 - 21.12 Release Feature Overview Feature Release ... This does not impact the core Space Manager functionalities of Level and Space records, the Levels Sheet, and Stack Plans.

    High-Performance Computing Using FPGAs

    The Part on architectures will introduce different FPGA-based HPC platforms: attached co-processor HPRC architectures such as the CHREC’s Novo-G and EPCC’s Maxwell systems; tightly coupled HRPC ...

    FastReport.v4.15 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版支持D4-XE5

    FastReport.v4.15 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版支持Delphi 4-XE5 and C++Builder 6-XE5. D2010以上版本(D14_D19)安装必读 delphi2010以上版本(D14_D19)使用者安装时,请将res\frccD14_...

Global site tag (gtag.js) - Google Analytics