The source attachment does not contain 怎么
场景:The source attachment does not contain the source for the file xxx class,该怎么处理
The source attachment does not contain the source for the file xxx class
看java 源码的时候

想看packet源码,提示让我关联tinder.jar,然后我关联了,

又出现这个The source attachment does not contain the source for the file xxx class 错误,怎么解决??

附:我知道可以在网上查找相关包,但是那样不是很麻烦么,如果在eclipes能直接查找,会更快一些吧。
------解决思路----------------------
目录结构可能不正确,就是说要保证这个 zip/jar 包打包时的目录结构和 *.class 打包成 jar 时的结构是一样的,对比原来的 jar 二进制文件,应该只是扩展名 .java 和 .class 的差别。
比如一个类叫 com.mycompany.projecta.Main,它应该在源码 zip 的 com/mycompany/projecta 目录下。否则也找不到。
The source attachment does not contain the source for the file xxx class
看java 源码的时候
想看packet源码,提示让我关联tinder.jar,然后我关联了,
又出现这个The source attachment does not contain the source for the file xxx class 错误,怎么解决??
附:我知道可以在网上查找相关包,但是那样不是很麻烦么,如果在eclipes能直接查找,会更快一些吧。
------解决思路----------------------
目录结构可能不正确,就是说要保证这个 zip/jar 包打包时的目录结构和 *.class 打包成 jar 时的结构是一样的,对比原来的 jar 二进制文件,应该只是扩展名 .java 和 .class 的差别。
比如一个类叫 com.mycompany.projecta.Main,它应该在源码 zip 的 com/mycompany/projecta 目录下。否则也找不到。