1.添加src.zip,连接源码STS,source not found解决方案

2.光连接源码还不行,下载net.sf.jadclipse_3.3.0.jar和jad.exe,用于反编译

1,在D盘或者其他盘创建一个文件夹jad,把jad.exe放在里面

2,把net.sf.jadclipse_3.3.0.jar复制到D:\eclipse\eclipse\plugins安装目录下,sts也是plugins目录下

3,启动eclipse,点击window ————> preferences ————> java ————> jadClipse path
to decompiler选项 放jad文件夹,输入jad或者D:\jad\jad.exe

directory for… files 选项 放C:\Users\Administrator.net.sf.jadclipse

重启eclipse工具,点击jar包中class文件试一下!

3.添加了反编译还是报错source not found!

原因是虽然制定了jadclipse,但是在查看class或者jar文件的时候,还是使用的class file
viewer!而没有使用我们的jdclipse,我们应该设置jdclipse为default。就解决问题了。

window ————> preferences ————> General ————>Editors---->File Associations---->选中*.class widthout source—>Associated editors添加JadClipse Class File Viewer(default),

window ————> preferences ————> General ————>Editors---->File Associations---->选中*.class—>Associated editors添加JadClipse Class File Viewer(default)
两个都设置后,至此成功了
STS,source not found解决方案

相关文章: