`

eclipse找不到findbugs

 
阅读更多

来源:http://chenzhou123520.iteye.com/blog/1313565

我们都知道,在Eclipse或MyEclipse中安装插件有两种方式,一种是在线安装,第二种是先下载插件然后在本地安装。

在这里我们先介绍第一种在线安装。

 

Eclipse上在线安装findbugs(具体步骤如下,就不再赘述)

 

 

In Eclipse, click on Help -> Software Update -> Find and Install...

Choose the Search for new features to install option, and click Next .

Click New Remote Site .

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 .

"FindBugs update site" should appear under Sites to include in search . 

Click the checkbox next to it to select it, and click Finish .

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.

Select the I accept option to accept the license and click Next .

Make sure the location is correct where you're installing it. The default (your workspace) should be fine. Click Finish .

The plugin is not digitally signed. Go ahead and install it anyway.

Click Yes to make Eclipse restart itself.

 

但是我们使用MyEclipse时,一般都是使用的破解版,所以很多插件都无法在线安装,只能先下载然后再安装。

这里我们介绍第二种方法

 

MyEclipse8.5 和 Eclipse中安装findbugs插件
 
1、首先从findbugs网站下载插件:http://findbugs.sourceforge.net/downloads.html 
 
2、将下载回来的zip包解压,findbugs插件和一般的插件不太一样,一般的插件安装包解压后里面一般是包含plugins和features两个文件夹,我们只需要把这两个文件夹下的jar包或文件夹拷贝到Eclipse或MyEclipse安装路径下对应的plugins和features文件夹中就OK了。但是findbugs插件压缩包解压后得到文件夹:edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821 ,将该文件夹拷贝到myeclipse和Eclipse安装目录下plugins目录下。
我的目录结构:
Eclipse:D:\Program Files\eclipse4ee\plugins\edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821
MyEclipse:D:\Program Files\Genuitec\Common\plugins\edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821
 
3、修改myeclipse和Eclipse安装目录下configuration/org.eclipse.equinox.simpleconfigurator的bundles.info文件,在文件最后添加一行:
Eclipse:edu.umd.cs.findbugs.plugin.eclipse,1.3.9.20090821,plugins/edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821/,4,false
MyEclipse: edu.umd.cs.findbugs.plugin.eclipse,1.3.9.20090821,file:/D:/Program Files/Genuitec/Common/plugins/edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821/,4,false
注:bundles.info文件中添加的格式为     插件包名 , 插件版本号 , 插件安装路径 , 4 , false
如上findbugs插件:
edu.umd.cs.findbugs.plugin.eclipse:插件的压缩包名
1.3.9.20090821:该插件的版本号
plugins/edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821/ :该插件的安装路径,如果插件是一个jar包,则不要最后的/,
例如plugins/org.uddi4j_2.0.5.v200805270300.jar,4,false
,4,false:固定格式
 
4、重启myeclipse和Eclipse,选中项目,右键会出现一个Find Bugs菜单。至此,findbugs插件安装完毕
 
 
ps :之前安装findbugs后,重启eclipse一直找不到findbugs,这篇文章解决了我的问题,非常感谢原作者
分享到:
评论

相关推荐

    eclipse插件findBugs

    eclipse中直接安装时不成功,然后下载该zip,直接解压到plugins目录下,重启eclipse即可,注意文件名必须为版本号,不能为其他字符信息,否则不成功,亲测。

    findbugs eclipse插件

    eclipse插件 优秀的代码检查工具 一般官网下载到的zip是findbugs的工程,不能直接用到eclipse上,把我传的这个文件解压后的文件夹放到dropins目录下就可以使用

    最新findbugs.plugin.eclipse及源码

    静态分析工具承诺无需开发人员费劲就能找出代码中已有的缺陷。当然,如果有多年的编写经验,就会知道这些承诺并...与其他静态分析工具不同,FindBugs 不注重样式或者格式,它试图只寻找真正的缺陷或者潜在的性能问题

    findbugs(静态代码分析插件)

    1、将下载回来的zip包...这里file后面的路径要根据自己的目录设置进行修改,要不然重启myeclipse后,仍然找不到findbugs。 3、重启myeclipse,选中项目,右键会出现一个Find Bugs菜单。至此,findbugs插件安装完毕。

    findbugs(静态代码分析工具)

    1、将下载回来的zip包...这里file后面的路径要根据自己的目录设置进行修改,要不然重启myeclipse后,仍然找不到findbugs。 3、重启myeclipse,选中项目,右键会出现一个Find Bugs菜单。至此,findbugs插件安装完毕。

    java代码检查工具 findBugs eclipse插件1.39最新

    图 1 显示了分析一个匿名项目的结果(为防止可怕的犯罪,这里不给出它的名字): 在FindBugs的GUI中,需要先选择待扫描的.class文件(FindBugs其实就是对编译后的class进行扫描,藉以发现一些隐藏的bug。)。如果你...

    eclise插件findbugs最新版

    findbugs--Java代码分析工具,最新版,如果在官方网下载不了,可到这里进行下载!

    fb-contrib-eclipse-quick-fixes:一个 Eclipse 插件,它将通过为 fb-contrib 错误检测器添加快速修复来扩展 FindBugs Eclipse 插件

    ##fb-contrib Eclipse 快速修复插件(简称 fb-contrib quickfixes) ## 这个存储库扩展了 提供的快速修复,以涵盖由 、 和 FindBugs 本身检测到的。 ##Installing the plugin##要安装这个项目,打开Eclipse,进入...

    m2e-code-quality:一组M2Eclipse Eclipse插件,这些插件将配置从Checkstyle,FindBugs和PMD Maven插件传递到其相应的Eclipse插件

    因此,这是合乎需要打开的Maven在M2E插件断,接通Eclipse插件,并且从Maven插件到Eclipse插件移动配置。 在理想情况下,将存在某种标准化的API,该API允许Maven之类的构建工具发布此配置,并允许IDE插​​件使用它...

    FindBugsFindBugsFindBugs

    FindBugs 是一个静态分析工具,它检查类或者 JAR 文件,将字节码与一组缺陷模式进行对比以发现可能的问题。利用这个工具,就可以在不实际运行程序的情况对软件进行分析。...可以集成到ant里或者作为eclipse的插件使用。

    Java 7并发编程实战手册

    学习完本书,你可以将这些开发技术直接应用到自己的应用程序中。 《Java 7并发编程实战手册》适合具有一定Java编程基础的读者阅读和学习。如果你是一名Java开发人员,并且想进一步掌握并发编程和多线程技术,并挖掘...

Global site tag (gtag.js) - Google Analytics