A few words of thanks would be greatly appreciated.

Eclipse - Installation and first use of the FindBugs Plugin

FindBugs is a static analysis tool that examines the classes in search of potential problems during development, providing a powerful code auditing feature. It analyzes the bytecode to identify the familiar patterns. It is not limited to perform search using regular expressions, it tries to understand what the program wants to do.

Installing the plugin

FindBugs is a plugin compatible with Eclipse versions 3.x: (3.0, 3.1, 3.2, ...).
If you have already installed a previous version of FindBugs (before May 2006), then delete this version:
Simply delete the de.tobject.findbugs_0.0.n folder located in the plugins directory of Eclipse.
Verify that the JAVA_HOME environment variable is present.
  • To install the FindBugs plug-in, follow these steps:
  • In Eclipse, click Help/Software Update/Find and Install ...
  • Choose the option "Search for new features to install" and click Next.
  • Click on New Remote Site.

Then click OK.
  • "FindBugs update site" should appear in the list "Sites to include in search".
  • Select the checkbox "FindBugs update site", then click "Finish".
  • "FindBugs Feature" would then appear under "Select features to install".
  • Select the checkbox and click "next".
  • Select the "I accept" to accept the license and click "Next."
  • Make sure that the installation directory is correct. Then click Finish.
  • Restart Eclipse.

Using the plugin

The FindBugs Window
Click on Window/Show View/Other /Bug Explorer

The " Bug Explorer" and "Bug Details" windows should appear .

Viewing bugs

Select projects, packages, or classes that you want to check, right-click and choose Find Bugs.

The bugs found by FindBugs appear in the Bug Explorer window.

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled "Eclipse - Installation and first use of the FindBugs Plugin," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).