STS,source not found解决方案

1.添加src.zip,连接源码在这里插入图片描述

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)
两个都设置后,至此成功了
在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值