New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analyse jar and not java file #695
Comments
SpotBugs works on compiled files, not source files, for starters. How are you trying to execute it? |
I wanna use it to test mobile applications code quality. so i reverse the .apk to java files than i run the spotbugs on those files. |
How are you running it? Via Ant? Eclipse? Standalone? Can you paste the command that you're running? |
i run it standalone : ./spotbugs -textui -xml:withMessages file.java |
As mentioned, can you try it on bytecode rather than Java source? |
ok i will try to do it. thanks.
…On Thu, Jul 12, 2018 at 10:09 PM ThrawnCA ***@***.***> wrote:
As mentioned, can you try it on bytecode rather than Java source?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#695 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASkx8WGhlsQBC1IMnHU8MWCtHmiaQh8Fks5uF7sagaJpZM4VK8wG>
.
--
[image: 21979502_1455373591220383_171541989_n.png]
AFTAHI Abderrahmane | Networks and Telecommunications engineer
abderrahmane.aftahi@gmail.com | +212 657843210
Ecole Nationale des Sciences Appliquées de Marrakech
40000 Marrakesh - Morocco
[image: Sans titre.png] <https://www.linkedin.com/in/aftahi-abderrahmane/>
<https://github.com/A-AFTAHI>
|
I'll close this stale issue, please feel free to reopen. |
I am having below issue please help me As i want to generate xml reports into file Error |
When i run spotbugs on jar files it works just fine but when i run it on standalone .java file, i get the following error:
Exception in thread "main" java.io.IOException: IOException while scanning codebases
at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:282)
at edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:401)
at edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1187)
Caused by: edu.umd.cs.findbugs.classfile.ResourceNotFoundException: Resource not found: java/lang/Object.class
at edu.umd.cs.findbugs.classfile.impl.ClassPathImpl.lookupResource(ClassPathImpl.java:164)
at edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:282)
at edu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:674)
at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:215)
The text was updated successfully, but these errors were encountered: