Support free tutorials

vogella training Training Books

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
4.1. Donate to support free tutorials
4.2. Questions and discussion
4.3. License for this tutorial and its code
5. Links and Literature
5.1. Code Analysis resources
5.2. vogella Resources

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

4.1. Donate to support free tutorials

Please consider a contribution Support free tutorials if this article helped you. It will help to maintain our content and our Open Source activities.

4.2. Questions and discussion

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.

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.

4.3. License for this tutorial and its code

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.

5. Links and Literature

5.1. Code Analysis resources Findbugs Homepage

5.2. vogella Resources

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.