问题描述:
请问Eclipse调试中出现The source attachment does not contain the source for the file该怎么办?
在调试时发现我导入的jar中的一个class进不去,提示说The source attachment does not contain the source for the file Element.class
这个class在jdom.jar里,可是我之前已经导入这个jar了啊,就在工程的Referenced Libraries下面,请问这是怎么回事呢?
而且我发现任何class都打不开,比如在项目的JRE System library里的rt.jar里的java/applet/Applet.class,
也是提示说是source not found
The JAR file C:\Program Files\Java\jre6\lib\rt.jar has no source attachment.
可是这个jar明明在那里啊,难道Eclipse要有什么全局的路径设置吗?
在调试时发现我导入的jar中的一个class进不去,提示说The source attachment does not contain the source for the file Element.class
这个class在jdom.jar里,可是我之前已经导入这个jar了啊,就在工程的Referenced Libraries下面,请问这是怎么回事呢?
而且我发现任何class都打不开,比如在项目的JRE System library里的rt.jar里的java/applet/Applet.class,
也是提示说是source not found
The JAR file C:\Program Files\Java\jre6\lib\rt.jar has no source attachment.
可是这个jar明明在那里啊,难道Eclipse要有什么全局的路径设置吗?
问题解答:
我来补答展开全文阅读