Link Details

You pick the winners! Login and vote now.
Link 62312 thumbnail
User 259836 avatar

By ChiralSoftware
via chiralsoftware.com
Published: Jan 21 2008 / 17:02

You can't compile your Java package because some class is not found. You know that the class is part of the JBoss Application Server distribution. Or maybe the Seam distribution. That's a total of over 500 JAR files the class could be in. How do you find it quickly? We write a simple program to scan through JAR files. This demonstrates using the JarFile class in Java. It's fast and useful.
  • 9
  • 2
  • 1100
  • 455

Comments

Add your comment
User 239613 avatar

kremso replied ago:

2 votes Vote down Vote up Reply

find -type f -name \*jar -exec unzip -l {} \; | egrep '^Archive|HttpServletRequest'

User 238395 avatar

najgor replied ago:

0 votes Vote down Vote up Reply

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (2)