I am loading several different classes from several different .jars from a custom class loader in Java. I create a custom URLClassLoader
, add several .jars to it and pass it on to a ServiceLoader
to find the classes I want.
My question is: given a class, is there a way to discover which .jar it was loaded from?