Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FindBugs 3 not working in Eclipse Luna

I try to use the FindBugs 3.0.0 in my Eclipse Luna. After installing it it should be available on context menu of my JavaProject and under Window -> Preferences -> Java -> Find Bugs.

But it isn't there.

I tried it with installation from Marktplace, Update Site and downloading the Zip and putting it into my Eclipse installation.

Is there anything else I have to do to make it run?

Greeting Sören

like image 294
Sören Avatar asked Jul 27 '14 13:07

Sören


People also ask

How do I run FindBugs in eclipse?

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.

How do you run FindBugs?

The preferred method of running FindBugs is to directly execute $FINDBUGS_HOME /lib/findbugs. jar using the -jar command line switch of the JVM (java) executable. (Versions of FindBugs prior to 1.3. 5 required a wrapper script to invoke FindBugs.)

What code does FindBugs used for code analysis?

FindBugs operates on Java bytecode, rather than source code. The software is distributed as a stand-alone GUI application. There are also plug-ins available for Eclipse, NetBeans, IntelliJ IDEA, Gradle, Hudson, Maven, Bamboo and Jenkins.


1 Answers

I had the same problem. My eclipse run on JVM 6 and FindBugs didn't work. I switch eclipse to use JVM 7 and this fixed issue. For more info how to switch JVM version that eclipse uses, see this eclipse Wiki

like image 197
Ievgen Bil Avatar answered Sep 18 '22 16:09

Ievgen Bil