eclipse myeclipse 安装findbugs插件

安装findbugs插件有两种

       第一种:来源:http://findbugs.cs.umd.edu/eclipse/

  1. In Eclipse, click on Help -> Software Update -> Find and Install...
  2. Choose the Search for new features to install option, and clickNext.
  3. Click New Remote Site.
  4. Enter the following:
    • Name: FindBugs update site
    • URL: one of the following (note: no final slash on the url)
      • http://findbugs.cs.umd.edu/eclipse for official releases
      • http://findbugs.cs.umd.edu/eclipse-candidate for candidate releases and official releases
      • http://findbugs.cs.umd.edu/eclipse-daily for all releases, including developmental ones
    and click OK.
  5. "FindBugs update site" should appear under Sites to include in search.
    Click the checkbox next to it to select it, and click Finish.
  6. You should see FindBugs Feature under Select features to install.
    (You may have to click on one or two triangles to make it visible in the tree.)
    Select the checkbox next to it and click next.
  7. Select the I accept option to accept the license and click Next.
  8. Make sure the location is correct where you're installing it. The default (your workspace) should be fine. ClickFinish.
  9. The plugin is not digitally signed. Go ahead and install it anyway.
  10. Click Yes to make Eclipse restart itself.

       第二种:

       1.官网下载findbugs压缩包edu.umd.cs.findbugs.plugin.eclipse_版本.zip

       2.压缩文件解压缩至Eclipse或MyEclipse下的plugins文件夹下

       3.重启Eclipse

在window-->preperences-->java找到findbugs表示安装成功,否则安装失败


我最初是按照第一种方法安装,但是没有成功,后来找了很多资料,总结解决方法如下:

打开eclipse\configuration\org.eclipse.equinox.simpleconfigurator下的bundles.info文件,查找是否有如下配置

      Eclipse:edu.umd.cs.findbugs.plugin.eclipse,2.0.3.20131122-15020,plugins/edu.umd.cs.findbugs.plugin.eclipse_2.0.3.20131122-15020/,4,false

      Myeclipse:edu.umd.cs.findbugs.plugin.eclipse,2.0.3.20131122-15020,file:/D:/Program Files/MyEclipse Professional/plugins/edu.umd.cs.findbugs.plugin.eclipse_2.0.3.20131122-15020/,4,false


      edu.umd.cs.findbugs.plugin.eclipse:包名

      2.0.3.20131122-15020:版本号

      plugins/edu.umd.cs.findbugs.plugin.eclipse_2.0.3.20131122-15020/:文件路径,Myeclipse要加file:/+Myeclipse安装路径

      4,false:固定写法


如果存在上述情况,建议换一下版本,如果不存在,在bundles.info中添加。

本人最初用第一种方法安装的是3.0版本的,上面的配置信息也存在,但是没有安装成功,后来用第二种方式下载了2.0压缩包,配置bundles.info,重启Eclipse/Myeclipse,安装成功




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值