FindBugs command line: how to specify the project to be analyzed?
问题 I tried to run FindBugs in command line and had troubles when specifying the project to be analyzed. I understand FindBugs works on bytecode (.jar, .class), so I wrote a HelloWorld program and made sure that it had some messy code that would be detected by FindBugs. Then I tried: java -jar D:/findbugs-2.0.3/lib/findbugs.jar -project HelloWorld/bin which threw an exception: java.lang.IllegalArgumentException: Can't read project from HelloWorld/bin at edu.umd.cs.findbugs.Project.readProject