Where did this class come from?

Posted by Karl on Stack Overflow See other posts from Stack Overflow or by Karl
Published on 2010-04-13T18:58:26Z Indexed on 2010/04/13 19:03 UTC
Read the original article Hit count: 382

Filed under:
|
|

How would you go about establishing where a class ( or maybe resource ) has been loaded from?

I am trying to work out exactly where a class has been loaded from. Does anyone know if you can find out the following:

  1. Which Jar file did the class come from ?
  2. What classloader loaded the file?

© Stack Overflow or respective owner

Related posts about java

Related posts about classloading