Java - Get a list of all Classes loaded in the JVM

Posted by Walter White on Stack Overflow See other posts from Stack Overflow or by Walter White
Published on 2010-03-30T20:16:53Z Indexed on 2010/03/30 20:23 UTC
Read the original article Hit count: 416

Filed under:
|
|

Hi all,

I would like to get a list of all the classes loaded in the JVM at a particular point in time. The classes are in a particular package and are accessible via /WEB-INF/classes and not through a jar file in /WEB-INF/lib.

How would I get a list of classes? Would I simply get the classpath, list all the files, then look for the names?

Walter

© Stack Overflow or respective owner

Related posts about java

Related posts about reflection