Eclipse: class file editor: source not found 问题解决办法

Eclipse: class file editor: source not found。。。。问题

在搜了很多资料之后,,自己试验总结了下面的办法:

在eclipse编辑器中,当点击某个类时,想看一下这个类的具体实现,但是总是出现

ClassFileEditorSourcenotfoundThesourceattachmentdoesnotcontainthesourceforthefilexxx.class.YoucanchangethesourceattachmentbyclickingChangeAttachedSourcebelow.

点击“Change Attached Source…”按钮按照提示找到源文件就可以了重点一句话:找到相应的源代码,进行压缩,将压缩包添加即可;

比如你要找的是android代码的源文件,将 sdk的包 压缩一下 sdk.jar ,再点击 add external file 或者 jar 都可以,这样就 ok 了!

另外如果就要查的是java 代码,将jdk的安装路径下的 Src.zip 添加即可 ,我的jdk安装路径是C:\Program Files\Java\jdk1.7.0_40

希望能帮助大家,也欢迎补充…….

爱的力量大到可以使人忘记一切,

Eclipse: class file editor: source not found 问题解决办法

相关文章:

你感兴趣的文章:

标签云: