• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

findbugs "no classes found" error

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All,

I've been scouring the 'boards looking for an answer to this question, but all I see is the question repeated with no useful feedback. I'm hoping that you JavaRanch folks will be able to help.

I have findbugs set-up and running as its own task in Ant. The problem is that when I attempt to run it against a .ear file, it gives me the "no classes found" error. However, when I run it against a .jar file, it behaves as I would expect it to.

The problem is, I'm using findbugs 1.3.x, and the issue with findbugs not being able to read .ear files was fixed in 0.6.2. Is there any chance one of you fine folks could help me with this?

The first person to respond with a useful solution gets a secret prize!
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd probably download the sources for your version of FindBugs and grep the source code for ".jar" or "java.util.jar" or something like that - try to find the place where FindBugs figures out what to do with a given file.
 
Michael Van
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Turns out the real problem was that instead of pointing the class attrib at the .ear file, I should have pointed it at the directory containing the .class files. Who'd have known that running Findbugs as documented wouldn't work? Meh.
reply
    Bookmark Topic Watch Topic
  • New Topic