Dave's Brain

Browse - Programming Tips - How can I quickly run findbugs on Fedora?

Date: 2014may29
OS: Linux
Distro: RedHat/Fedora/CentOS
Language: Java
Keywords: lint, find, bugs

Q.  How can I quickly run findbugs on Fedora?
(It finds problems in Java code)

A. Install it:

dnf install findbugs
Run it:
findbugs -sourcepath <my-src> <my-jar> > bugs.txt
For example:
findbugs -sourcepath /usr/local/src/mycode /tmp/myjar.jar > bugs.txt
If you get an error about dom4j missing, do:
dnf install dom4j

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.