Which4J is a simple utility app that helps you determine where classes are
being loaded from. This can be especially helpful in debugging classpath and
classloader problems. It serves the same general purpose as the Unix
which command except it searches your classpath (or a particular
classloader) instead of your shell command path.
Which4J can be run in command-line mode to search your system classpath for
all occurrences of the specified classname. More importantly, it can also be used
programmatically to search a particular ClassLoader for the first occurrence
of the specified classname or Class instance. This can be extremely valuable
when trying to debug problems in web containers and application servers that
have sophisticated ClassLoader hierarchies.
For more information about using this product and obtaining and building the
source, please refer to the release notes.
Distributions
Jump straight to the File Sharing section and grab a binary release!