Myeclipse设置jar文件的源代码

project 右键-->properties --> java buil path --> libraries --> 展开要设置源代码的jar --> 选中“Source Attachment:(none)”-->edit -->选中源代码所在位置 -->点 OK

the source attachment does not contain the source for the file HttpServlet.class
迷茫啊,给的路径下我能看到javax.servlet的jar包啊。怎么会报这个问题呢?但是细看,会发现,source Attachment:(none)

去上网下载一个源码.... apache-tomcat-6.0.39-src.zip 就像这样的压缩文件,然后照着上面的方法去做即可解决!!!

你可能感兴趣的:(源代码,jar)