This question is an exact duplicate of:
这个问题与以下内容完全相同:
- source not found in java library 1 answer
- 在java库中找不到源1答案
I'm new in java ...I have this when used break point in the code
我是java的新手...我在代码中使用断点时有这个
source not found
.....> Edit source look up path
找不到源.....>编辑源查找路径
then i added src.zip of Jdk1.6.0_38 for rt.jar by windows>preferences>installedJRE>source attahchment of rt.jar
然后我通过windows> preferences> installedJRE> rt.jar的source attahchment为rt.jar添加了sd.zip的Jdk1.6.0_38
and got this after i returned to breakpoint
在我回到断点后得到了这个
I'm on ubuntu 12.04 and eclipse Kepler
我在ubuntu 12.04和eclipse开普勒
what can i do to solve this ?
我该怎么做才能解决这个问题?
1 个解决方案
#1
0
add the source
(jar file which contains your class) in the debug configuration
在调试配置中添加源(包含您的类的jar文件)
Debug as> Debug Configurations> Source > Add
调试为>调试配置>源>添加
#1
0
add the source
(jar file which contains your class) in the debug configuration
在调试配置中添加源(包含您的类的jar文件)
Debug as> Debug Configurations> Source > Add
调试为>调试配置>源>添加