我们都知道,在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插件安装完毕。
分享到:
相关推荐
Myeclipse10安装checkStyle与findBugs插件-费元星详细完美解决 版权费元星
1, 把下载的压缩包(edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821.zip)解压后, copy到eclipse的plugin目录中去即可;(其中findbugs-2.0.1-source,是源码) 本人电脑安装时Myeclipse6.5,安装到了C盘,放在了...
eclipse代码质量检测插件findbugs1.3.9,附带eclipse\myeclipse安装说明
indBugs 是由马里兰大学提供的一款开源 Java静态代码分析...在安装成功后会在 eclipse中增加 FindBugs perspective,用户可以对指定 Java类或 JAR文件运行FindBugs,此时 FindBugs会遍历指定文件,进行静态代码分析。
FindBugs 是由马里兰大学提供的一款开源 Java静态...在安装成功后会在 eclipse中增加 FindBugs perspective,用户可以对指定 Java类或 JAR文件运行 FindBugs,此时 FindBugs会遍历指定文件,进行静态代码分析。
MyEclipse常用插件,资源文件插件propedit,代码自动检查插件findbugs和pmd,tomcat快速启动插件tomcatPlugin
包含了eclipse(MyEclipse也可用)下的pmd checkstyle findbugs插件
findbugs2.0插件包,将其解压并放置在myeclipse安装目录/eclipse/plugins里面,重启后即可
1、将下载回来的zip包解压,得到文件夹:edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821, 将该文件夹拷贝到myeclipse安装目录下common/plugins目录下。我的目录结构:D:\...至此,findbugs插件安装完毕。
1、将下载回来的zip包解压,得到文件夹:edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821, 将该文件夹拷贝到myeclipse安装目录下common/plugins目录下。我的目录结构:D:\...至此,findbugs插件安装完毕。
myeclipse 和 eclipse 集成插件
使用myeclipse8,不支持新版findbug3插件,故共享此插件供大家使用。