the source attachment does not contain the source for the file xxx.class无法关联到某个类

问题描述:

按下列操作添加相应路径(这里是错误操作)

该问题仍旧无法解决:

注意:这里spring-webmvc-4.1.7.RELEASE.JAR中确实包含AnntationMethodHandlerAdapter.class文件

正确操作:

将这两个文件进行解压:

spring-webmvc-4.1.7.RELEASE-sources.jar

spring-webmvc-4.1.7.RELEASE.jar

可以发现:

spring-webmvc-4.1.7.RELEASE-sources.jar  存放的是.Java文件

spring-webmvc-4.1.7.RELEASE.jar  存放的是对应的.class文件

时间: 2024-08-05 12:45:31

the source attachment does not contain the source for the file xxx.class无法关联到某个类的相关文章

ADT 查看 android 源码 The source attachment does not contain the source

按Ctrl + 左击 所要查看的源码出现: The source attachment does not contain the source... step1:点击 project--->点击properties--->选中 Java Build Path 查看Source attachment/Javadoc Location 这两个选项 step2:配置Source attachment/Javadoc Location 双击 Source attachment或者选中后点击Edit 在

debug网页时小问题The source attachment does not contain the source for the file

第一次debug总是出现下图问题,提示我没加源码... The source attachment does not contain the source for the file ... 解决方法:先跳过所有断点,让服务启动成功.再设置断点调试.

3、eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法

因为rt的source在jdk目录的src.zip文件里,将文件设置为jdk下的src.zip就行了.具体如下 Window>Preferences>Java>Installed JREs 选上jdk1.6.xxxx,点edit,jre system libraries下面点rt.jar的那一栏,然后选source attachment在弹出的对话框里填写src.zip的路径

The JAR file XXX has no source attachment问题(Eclipse)

学习过程中查看源码遇到The JAR file XXX has no source attachment的问题后我的解决办法是下载一个Java Source Attacher这个插件.这个插件自动帮你附加源代码,就不用了手动附加. 一.下载插件 1.下载地址:http://marketplace.eclipse.org/ 2.如图 3.如图 二.插件放置 下完插件后,将org.freejava.javasourceattacher_1.2.8.jar放置到Eclipse根目录下的plugins文

Source Insight 基本使用(2)-修改Source Insight 快捷键

1. 首先,打开source insight主界面. 2. 选择"options->key assignments",进入快捷键设置界面. 3. 此时,可以看到快捷键设置对话框. 4. 找到高亮的命令,可以看到默认的快捷键是Shift+F8. 点击"Assign new key",分配新的快捷键. 5. 我们可以设置鼠标中键作为快捷键. 6. 保存即可. 7.此时,我们只需在需要高亮的单词上面点击鼠标中键即可高亮,再次点击即可取消高亮.这样就可以非常方便高效地

【JAVA】【Eclipse】出现This element neither has attached source nor attached Javadoc...的解决方法

This element neither has attached source nor attached Javadoc and hence no Javadoc could be found Eclipse有直接查看Java文档和类库源码的功能,不过得手工添加才行,下面对如何在Eclipse中添加java文档和类库源码进行总结. 1. Window->Pereferences...打开参数选择对话框,展开Java节点,单击"Installed JREs",此时右边窗口会显示已

自动化脚本过程中出现This element neither has attached source nor attached Javadoc...的解决方法

This element neither has attached source nor attached Javadoc and hence no Javadoc could be found Eclipse有直接查看java文档和类库源码的功能,不过得手工添加才行,下面对如何在Eclipse中添加java文档和类库源码进行总结. 1. Window->Pereferences...打开参数选择对话框,展开Java节点,单击“Installed JREs",此时右边窗口会显示已经加载的j

This element neither has attached source nor attached Javadoc and hence no Javadoc could be found

This element neither has attached source nor attached Javadoc and hence no Javadoc could be found Eclipse有直接查看Java文档和类库源码的功能,不过得手工添加才行,下面对如何在Eclipse中添加java文档和类库源码进行总结. 1. Window->Pereferences...打开参数选择对话框,展开Java节点,单击“Installed JREs",此时右边窗口会显示已经加载的j

Eclipse 添加 Source 源代码、Javadoc 文档

源代码 Source 按住 Ctrl 键,鼠标放到对应的类.方法上,出现 Open Declaration,Open Implementation ,可查看对应的实现.声明源代码. 也可以在[Project Explorer]视图中,Libraries 下找到相应的类,打开即可查看源代码. 如果没有源代码,则会出现 "Source not found",[Attach Source...]按钮可配置. 也可以在 [Project Explorer]视图中,对应项目的 "Jav