1. 程式人生 > >關於在eclipse或myeclipse安裝Find bugs外掛的操作

關於在eclipse或myeclipse安裝Find bugs外掛的操作

最近由於專案需要,需要安裝find bugs,這個外掛還是相當強大,可以幫助找到很多潛在的程式碼質量問題,例如潛在的sql注入問題等,特記此篇以示敬意!

本文主要結合網路資料和個人經歷,在實際安裝過程中遇到的問題並處理,親測成功!本文據於myeclipse10,find bugs 2.0.2.20121204的版本來驗證。

我們都知道,在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時,一般都是使用的破解版,所以很多外掛都無法線上安裝,只能先下載然後再安裝。

這裡我們介紹第二種方法

MyEclipse10. 和 Eclipse中安裝findbugs外掛 1、首先從findbugs網站下載外掛:http://findbugs.sourceforge.net/downloads.html  本文以此外掛為例:https://sourceforge.net/projects/findbugs/files/findbugs%20eclipse%20plugin/2.0.2/edu.umd.cs.findbugs.plugin.eclipse_2.0.2.20121204.zip/download 請下載做好準備。
2、將下載回來的zip包解壓,findbugs外掛和一般的外掛不太一樣,一般的外掛安裝包解壓后里面一般是包含plugins和features兩個資料夾,我們只需要把這兩個資料夾下的jar包或資料夾拷貝到Eclipse或MyEclipse安裝路徑下對應的plugins和features資料夾中就OK了。但是findbugs外掛壓縮包解壓後得到資料夾:edu.umd.cs.findbugs.plugin.eclipse_2.0.2.20121204 ,將該資料夾拷貝到myeclipse和Eclipse安裝目錄下plugins目錄下。 我的目錄結構: Eclipse:D:\Program Files\eclipse4ee\plugins\edu.umd.cs.findbugs.plugin.eclipse_2.0.2.20121204 MyEclipse:D:\MyEclipse\Common\plugins\edu.umd.cs.findbugs.plugin.eclipse_2.0.2.20121204 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_2.0.2.20121204/,4,false MyEclipse:edu.umd.cs.findbugs.plugin.eclipse,2.0.2.20121204,file:/D:/MyEclipse/Common/plugins/edu.umd.cs.findbugs.plugin.eclipse_2.0.2.20121204/,4,false 注:bundles.info檔案中新增的格式為     外掛包名 , 外掛版本號 , 外掛安裝路徑 , 4 , false 如上findbugs外掛: edu.umd.cs.findbugs.plugin.eclipse:外掛的壓縮包名 2.0.2.20121204:該外掛的版本號 D:/MyEclipse/Common/plugins/edu.umd.cs.findbugs.plugin.eclipse_2.0.2.20121204/ :該外掛的安裝路徑,如果外掛是一個jar包,則不要最後的/, 例如plugins/org.uddi4j_2.0.5.v200805270300.jar,4,false ,4,false:固定格式 4、重啟myeclipse和Eclipse,選中專案,右鍵會出現一個Find Bugs選單。至此,findbugs外掛安裝完畢。

相關推薦

關於在eclipsemyeclipse安裝Find bugs外掛操作

最近由於專案需要,需要安裝find bugs,這個外掛還是相當強大,可以幫助找到很多潛在的程式碼質量問題,例如潛在的sql注入問題等,特記此篇以示敬意! 本文主要結合網路資料和個人經歷,在實際安裝過程中遇到的問題並處理,親測成功!本文據於myeclipse10,find b

Eclipsemyeclipse安裝jbpm6.3外掛

轉載自:http://www.cnblogs.com/zhujunxiao/p/5167345.html 按部就班,這個方法可行。 最近在學習jbpm,但是安裝在Eclipse上安裝外掛(GPD外掛)時把我坑苦了,網上的答案五花八門,我特此來修正“三觀”,以下分享已經實戰

Myeclipse Find Bugs 外掛安裝使用說明

1.       首先關閉Myeclipse 2.       下載Find Bugs 下載地址如下:http://downloads.sourceforge.net/project/findbugs/findbugs%20eclipse%20plugin/1.3.9/ e

Myeclipse學習總結(9)——MyEclipse2014安裝外掛的幾種方式(適用於EclipseMyEclipse其他版本)

眾所周知MyEclipse是一個很強大的Java IDE,而且它有許多開源免費又好用的外掛,這些外掛給我們開發過程中帶來了許多方便。外掛具有針對性,例如,你如果做安卓開發,可能需要一個ADT(Android Development Tools)外掛;如果你是前端開發攻城師,那麼你很有可能喜歡用Aptana(

EclipseMyeclipse匯出JAR包以及如何合併兩個JAR

最近做了個課程設計,由於使用了JDBC.jar包來匯入Oracle資料庫驅動,再使用Myeclipse匯出jar包時總是出現jdbc的主類找不到的問題,後來經過一段時間的搜尋,網路上很多方法都用過了,

eclipsemyeclipse中右首編輯介面點選 左邊Package Explorer導航自動定位

eclipse或myeclipse中右邊編輯介面點選 左邊Package Explorer導航自動定位     左導航Package Explorer的右上角有一個黃色雙向箭頭圖示,滑鼠移動到上面提示“Link with Editor”,按下這個圖示後,你在Editor開啟

EclipseMyEclipse更換jdk版本

原來用的就1.6的,現在專案要求用1.7以上的,分享下: JDK安裝成功,eclipse也安裝成功,這時候實際上是可以不配置JDK,因為系統已經預設給你配置好了,但是下面的情況需要配置:1.你係統中

eclipsemyeclipse中的專案用配置的Tomact啟動問題

eclipse中的專案用配置的Tomact啟動。但是出現問題,如下: Caused by: java.lang.IllegalStateException: Context namespace element 'component-scan' and it

EclipseMyEclipse安裝和使用git(egit)圖解筆記

Eclipse、MyEclipse使用git外掛(egit)圖解 在開發Java、JavaEE等相關程式時,我們會用到Eclipse或者MyEclipse,同時使用到git作為版本控制軟體,所以我們需要在這些IDE上整合git外掛,而egit正是Eclipse基金會開發外掛

macbook上eclipsemyeclipse無法獲取環境變數的問題

開啟:Run---> Run configuration-----> environment ---> new ---> name:設定為自己的環境變數名稱,value的設定,點選variables-----> Edit Variables ----> new : nam

java web 開發中 eclipse myeclipse無法解析匯入 javax.servlet 的解決方法

  出現上述問題的原因是你的Eclipse專案沒有匯入JSP執行所需要的Tomcat類庫,主要是servlet-api.jar檔案(或者servlet.jar),tomcat容器裡面有這檔案,在以下位置:%Tomcat_Home%/common/lib/servlet-a

myeclipse安裝反編譯外掛jad

step1:下載檔案: step2:   1、把net.sf.jadclipse_3.3.0.jar拷到C:\Documents and Settings\Administrator\MyEclipse Professional 2014\plugins 目錄下.

EclipseMyeclipse中搭建KindEditor環境並測試

       最近在學習KindEditor,按照官方手冊在Eclipse中搭建KindEditor的環境時出現了問題,後來解決了,在我的部落格裡寫出來希望對其他的人有幫助。 最後實現的效果應該是這樣的: (1)可以輸入文字,可以上傳檔案,可以上傳照片。 (2)點選提

eclipse怎樣線上安裝hibernate tools外掛並使用

不知不覺,小Alan已經將近3個月沒有上班了,最近在複習一些知識,隨時準備回到程式碼世界的戰場,今天覆習到了Hibernate,記錄一下一點點小知識,那就是eclipse下hibernate Tools的線上安裝,離線安裝的話速度應該會快那麼一些,但是個人感覺沒有線上安裝

Intellij IDEA 匯入EclipseMyEclipse的Web專案

1.通過TortoiseSVN客戶端將遠端專案checkout出來,儲存到硬碟上 �0�2 2.File -> Import Module -> 選擇之前檢出的專案 �0�2 3.進入"Import Module"視窗,選擇"Import module

eclipsemyeclipse模板設定

Eclipse註釋模板設定: 設定註釋模板的入口:  Window->Preference->Java->Code Style->Code Template 然後展開Comm

eclipsemyeclipse去除所有除錯斷點

今天除錯的時候發現之前加了太多斷點,用debug執行專案時,發現會執行超慢,百度了一下,下面方法可以幫助你解決問題: 方法一: 在工作介面,點window選單欄,選中Preperences,在General選項卡中的key節點下, 找到快捷鍵輸入欄,

記錄eclipse link形式安裝外掛 --敬一下如此弱智的操作

Download the plugins packages and unzip the contents to any directory. After doing this, create a links directory in your installed Eclip

MyEclipse安裝Eclipse Memory Analyzer外掛,並進行錯誤檔案分析流程

在看深入JVM虛擬機器一書(p50,2.4 實戰OutOfMemoryError),有一個Java堆溢位的例子,使用到了Eclipse Memory Analyzer外掛,由於自己現在使用的是MyEclipse,所以就需要在MyEclipse上新增外掛。具體步驟如下: 1.先安裝MAT外掛 3.將下載的檔

myeclipse如何安裝反編譯外掛jd-eclipse

在網上找了好多資料,終於讓我找到了jdeclipse_update_site.zip,現附上下載地址 另附上安裝方式 上述軟體是最新的0.1.4版本,親測有些問題,即每個包第一次打開了一個class檔案之後,後面的class檔案開啟之後內容都是第一次開啟的class的內