①
首先下载Eclipse Checkstyle Plug-in
官方首页:
http://sourceforge.net/projects/eclipse-cs/files/
最新版为:
net.sf.eclipsecs-updatesite_5.5.0.201111092104-bin.zip
②
打开MyEclipse9,选择菜单MyEclipse→MyEclipse Configuration Center→Software
③
点击右边的add site,然后在Add Update Site里面输入Name和URL。
URL:点击Add from Archive File,然后选择上面下载的zip包。
④
Personal Sites栏里选择Eclipse Checkstyle Plug-in,然后右键选择Add to Profile…,Software Updates Available栏里面打上勾,在底下的Pending Changes栏里点击Apply 1 Change按钮。
⑤
这一步安装插件可能出现"
Resolving and validating the profile
"卡死不动的问题,其实只要
断网
就可以继续了。
⑥
I acknowledge and accept ALL of the above licenses打勾,点击Next。
⑦
剩余空间确认,点击Update。
⑧
耐心等待安装结束…
⑨
点击Restar Now,重启MyEclipse。
⑩
安装成功确认。点击Windows→Preferences
Eclipse里的话就是Help > Software Updates > Find and Install,里面操作大同小异。
相关资源:myeclipse10中checkStyle与findBugs插件的安装,附软件与安装步骤