eclipse调试的时候遇到错误source not found

eclipse调试的时候报下边的错误
图片说明
the source attachment does not contain the source for the file ...
但是我明明从外边导入了对应的jar包,这是为什么呢

这个不是错误,这是因为你没有导入这个类的源文件,看不到它的类的定义。点击Change Attached Source...,他会让你选择一个文件,就是类的源文件,里面有类的定义,你可以找相关类的源文件,导入就可以看了。

给它指定一个源文件,也就是.java文件,