Support free tutorials:











vogella training Training Books



FindBugs in Eclipse - Tutorial

Lars Vogel

Version 1.3

06.11.2013

Revision History
Revision 0.1 - 1.1 18.03.2008 - 06.11.2013 Lars
Vogel
bugfixes and updates

Findbugs

This tutorial describes the usage of the Findbugs plug-in for Eclipse. It is based on Eclipse 4.3.


Table of Contents

1. Findbugs
2. Installation
3. Using Findbugs
3.1. Configuration
3.2. Using Findbugs in your projects
4. Support this website
4.1. Thank you
4.2. Questions and Discussion
5. Links and Literature
5.1. Code Analysis resources
5.2. vogella Resources

1. Findbugs

Findbugs is an Open Source project for static analysis of the Java bytecode to identify potential software bugs. The Findbugs analysis can be integrated into the Eclipse IDE via an additional software component.

Findbugs provides early feedback about potential errors in the code. This helps the developer to access these problems early in the development phase.

2. Installation

Use the HelpInstall New Software... menu entry to install the Findbugs Eclipse plug-in from the following URL:

http://findbugs.cs.umd.edu/eclipse 

Install all software components from this update site.

3. Using Findbugs

3.1. Configuration

After installing the Findbugs tooling you can activate it for a selected project via the project properties. For this right-click on the project and select properties. Select FindBugsRun FindBugs automatically .

3.2. Using Findbugs in your projects

Findbugs provides specialized views to see the reported error messages. Select WindowShow ViewOther... to access the views.

. The Findbugs error messages are also displayed in the Problems view or as decorators in the Package Explorer view.

4. Support this website

This tutorial is Open Content under the CC BY-NC-SA 3.0 DE license. Source code in this tutorial is distributed under the Eclipse Public License. See the vogella License page for details on the terms of reuse.

Writing and updating these tutorials is a lot of work. If this free community service was helpful, you can support the cause by giving a tip as well as reporting typos and factual errors.

4.1. Thank you

Please consider a contribution if this article helped you.

Flattr this

4.2. Questions and Discussion

If you find errors in this tutorial, please notify me (see the top of the page). Please note that due to the high volume of feedback I receive, I cannot answer questions to your implementation. Ensure you have read the vogella FAQ as I don't respond to questions already answered there.

5. Links and Literature

5.1. Code Analysis resources

http://findbugs.sourceforge.net Findbugs Homepage

5.2. vogella Resources

vogella Training Android and Eclipse Training from the vogella team

Android Tutorial Introduction to Android Programming

GWT Tutorial Program in Java, compile to JavaScript and HTML

Eclipse RCP Tutorial Create native applications in Java

JUnit Tutorial Test your application

Git Tutorial Put all your files in a distributed version control system