vogella training Android Training Eclipse Training

FindBugs in Eclipse - Tutorial

Lars Vogel

Version 0.6

02.06.2010

Revision History
Revision 0.1 18.03.2008 Lars
Vogel
Created
Revision 0.2 - 0.5 18.05.2008 - 03.08.2009 Lars
Vogel
bugfixes and updates
Revision 0.6 02.06.2010 Lars
Vogel
updated to latest Findbugs version and Eclipse 3.6

Findbugs

This article will describe the usage of the Findbugs plugin for Eclipse. Article is based on Eclipse 3.6 (Helios).


Table of Contents

1. Findbugs
2. Using Findbugs
2.1. Installation
2.2. Configuration
2.3. Using Findbugs in your projects
3. Thank you
4. Questions and Discussion
5. Links and Literature
5.1. Code Analysis resources
5.2. vogella Resources

1.  Findbugs

Findbugs performs static analysis for the Java byte-code to identify software bugs. By providing early feedback about certain (potential) errors in the coding it helps the developer to quickly identify problems in his coding.

2. Using Findbugs

2.1.  Installation

Use the Eclipse update manager to install Findbugs from the Findbugs update site http://findbugs.cs.umd.edu/eclipse.

2.2. Configuration

After installing findbugs you can activate findbugs for your project via the properties of your project and select FindBugs -> Run FindBugs automatically.

2.3.  Using Findbugs in your projects

To see the Findbugs errors, select Window->Show View -> Other. The Findbugs errors will be displayed in this view.

3. Thank you

Please help me to support this article:

Flattr this

4. Questions and Discussion

Before posting questions, please see the vogella FAQ. If you have questions or find an error in this article please use the www.vogella.com Google Group. I have created a short list how to create good questions which might also help you.

5. Links and Literature

5.1. Code Analysis resources

http://findbugs.sourceforge.net Findbugs Homepage

5.2. vogella Resources

Eclipse RCP Training (German) Eclipse RCP Training with Lars Vogel

Android Tutorial Introduction to Android Programming

GWT Tutorial Program in Java and compile to JavaScript and HTML

Eclipse RCP Tutorial Create native applications in Java

JUnit Tutorial Test your application

Git Tutorial Put everything you have under distributed version control system