How to explore which classes are loaded from which JARs?
问题 Is there a way to determine which classes are loaded from which jars at runtime? I'm sure we've all been in JAR hell before. I've run across this problem a lot troubleshooting ClassNotFoundException s and NoClassDefFoundError s on projects. I'd like to avoid finding all instances of a class in jars and using process of elimination on the code causing a CNFE to find the culprit. Will any profiling or management tools give you this kind of information? This problem is super annoying purely