Support free tutorials

Quick links

FindBugs in Eclipse - Tutorial

Lars Vogel

Version 1.4



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

Table of Contents

1. Findbugs
2. Installation
3. Using Findbugs
3.1. Run Findbugs for a project
3.2. Configure automatic Findbugs run
3.3. Using Findbugs in your projects
4. About this website
5. Links and Literature
5.1. Code Analysis resources
5.2. vogella GmbH training and consulting support

1. Findbugs

Findbugs is an open source project for a 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 plug-in from the following URL: 

Install all software components from this update site and restart your Eclipse IDE afterwards.

3. Using Findbugs

3.1. Run Findbugs for a project

To run the error analysis of Findbugs on a project, right-click on it and select Find Bugs...Find Bugs.

Run Findbugs on a project

3.2. Configure automatic Findbugs run

You can configure that Findbugs should run automatically for a selected project. For this right-click on a project and select Properties from the popup menu. via the project properties. Select FindBugsRun FindBugs automatically .

3.3. 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. About this website

5. Links and Literature

5.1. Code Analysis resources Findbugs Homepage

5.2. vogella GmbH training and consulting support

The vogella company provides comprehensive training and education services from experts in the areas of Eclipse RCP, Android, Git, Java, Gradle and Spring. We offer both public and inhouse training. Whichever course you decide to take, you are guaranteed to experience what many before you refer to as “The best IT class I have ever attended”. The vogella company offers expert consulting services, development support and coaching. Our customers range from Fortune 100 corporations to individual developers.