Monday, January 20, 2003 05:56 PM
I would like to know "which" jars contain a specific class based on the current classpath. Is there a standard command for this anywhere?
Print names of jars in the current directory containing a class named Foobar along with a fully qualitfied package name:
java -classpath . Which Foobar
This would be useful when you are looking at an example or a piece of code with a mile high stack of imports.