Home Tutorials Training Consulting Products Books Company Donate Contact us









NOW Hiring

Quick links

Share

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

1. What is FindBugs

FindBugs is an open source project for a static analysis of the Java bytecode to identify potential software bugs. Findbugs provides early feedback about potential errors in the code. This helps the developer to access these problems early in the development phase.

The analysis of Findbugs can be integrated into existing IDEs like the Eclipse IDE of IntelliJ.

2. Installation of the FindBugs tooling for Eclipse

Use the Help ▸ Install New Software…​ menu entry to install all the FindBugs components from the following URL. Restart your Eclipse IDE after the installation completes.

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

3. Using FindBugs in Eclipse

3.1. Run FindBugs for a project

To run the error analysis of FindBugs on a project, right-click on it and select the Find Bugs…​ ▸ Find Bugs menu entry.

Run FindBugs on a project

3.2. View the errors reported by FindBugs

FindBugs provides specialized views to see the reported error messages. Select View ▸ Zoom ▸ Reset Window ▸ Show View ▸ Other…​ to access the views.

findbugs20
findbugs30

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

3.3. 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. Select FindBugs ▸ Run automatically.

findbugsprojectproperties

4. About this website

5.1. Code Analysis resources

5.2. vogella GmbH training and consulting support

TRAINING SERVICE & 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.

Copyright © 2012-2016 vogella GmbH. Free use of the software examples is granted under the terms of the EPL License. This tutorial is published under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Germany license.

See Licence.