Eclipse里如果看不到Attach Source按钮应该怎么办
When I am creating unit test for one of my Java project A, I try to have a look at the source code of this annotation:
Once I press Ctrl and click, I see this message below. The “Attach Source” button is not there.
However I tried another project B in my laptop, it works:
This is strange. Then I compare the build path of two projects and find the reason.
For project A, it uses Eclipse embedded JUnit:
While for project B, the JUnit managed by Maven is used.
So the easiest approach for project A is to also switch to the external JUnit instead of Eclipse embedded one, so that developers have full control on both binary code and source code.
In Eclipse installation folder there is a folder plugin, within it there is an about.html,
the binary file and source code could be downloaded from url mentioned.
After that, go to project A,
replace with:
Now the source code for JUnit is also available for project A:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
Eclipse里如果看不到Attach Source按钮应该怎么办相关推荐
- 怎么在eclipse里调试WebDriver的源代码
当你看完WebDriver的工作原理这篇博客以后,是不是也跃跃欲试想印证文章里的理论是不是正确,想自己也看下webdriver的源代码,并且调试下,通过代码来更深入的了解WebDriver的工作原理. ...
- Android之Eclipse下面如何看Android源代码
在看代码的时候,会经常用到 ctrl+鼠标左键 去看自己写的类,有时候点到java的类或者android的类就无法打开,显示no class found之类的东西, 1.拿Button举例,ctrl加 ...
- spring boot 在eclipse里启动正常,但打包后启动不起来
现象描述: spring boot 在eclipse里启动正常,但打包后启动不起来. 错误日志如下: D:\Project>java -jar MKKY_CMS.jar. ____ _ __ _ ...
- 在Eclipse里使用代码模板
在Eclipse里使用代码模板 1.使用已有代码模板 (1)单击Window|Preferences,选择Java|Editor|Templates (2)查看sysout这个代码模板 (3)在代码里 ...
- android you can attach the source by clicking attach source below
使用eclipse做Android开发时,想查看或追溯一些系统api时,往往会出现: The JAR /home/xxx/.../android.jar has no source attachmen ...
- 使用eclipse查看java源码报错source not found
使用eclipse查看java源码报错source not found的解决办法 问题: 编写java代码时想要查看调用的系统的类或者接口时,使用快捷键(按住Ctrl,单击类或接口名)报错source ...
- Eclipse里的Java EE视图在哪里?MyEclipse里的Java EE视图在哪里?MyEclipse里的MyEclipse Java Enterprise视图在哪里?(图文详解)...
为什么要写这篇博客呢? 是因为,最近接触一个web项目. 然后呢,Eclipse里的Java EE视图的位置与MyEclipse里不太一样.为了自己梳理日后查找,也是为了新手少走弯路. Eclipse ...
- eclipse里启动tomcat无法通过127.0.0.1访问
在eclipse里面添加tomcat,再发布一个web项目进去,然后启动tomcat,日志显示tomcat在eclipse里面正常启动,hosts里面配置了ip跟域名的对应关系. 通过域名访问可以正常 ...
- 关于eclipse里启动Tomcat访问不到8080页面的问题
关于Tomcat和Eclipse的一个小事 原谅我懒得排版,重要的是内容(每次都这样安慰自己) 先放一张霉霉图片冷静一下 额,最近电脑装了个固态硬盘,有个还没做完的项目,需要下载EclipseEE和T ...
最新文章
- golang mysql 事务_golang的嵌套事务管理-Go语言中文社区
- C语言面试题分享(2)
- 2021牛客暑期多校训练营3
- 集合源码阅读:LinkedList
- 深度学习(七十三)pytorch学习笔记
- 使用 Jquery 来实现可以输入值的下拉选单 雏型
- 【bzoj 入门OJ】[NOIP 热身赛]Problem C: 星球联盟(并查集)
- iPads和iPhones的Media Queries(转载)
- 顶级在线图片处理工具Photopea
- 电脑桌面文件删除了怎么找回?
- win2003 iis 设置301转向
- 5v2.1a给5v2a充电行吗
- pygame的游戏窗口退出办法
- wordpress主题免费- wordpress插件以及主题下载
- Docker 容器监控原理及 cAdvisor 的安装与使用
- centos基本命令
- 一位对抗苹果的“勇士”:公开 iOS 未修复漏洞后,再写《恶意软件进 App Store 指南》
- 实战28:数字图像可视化水印系统的设计与实现(LSB算法、DCT算法、随机间隔算法、区域校验位算法、图像降级算法、图像降级算法改进等6种数字水印算法的实现)
- #数据分析知识点--假设检验第一二类错误
- 百胜图Barsetto手动奶泡机测评意想不到的丝滑奶泡