Getting a list of all the bootstrap classes on the JVM?
问题 There is a method called findBootstrapClass for a ClassLoader that returns a Class if it is bootstrapped. Is there a way to find classes has been loaded? 回答1: You could try to first get the bootstrap class loader by e.g. calling ClassLoader bootstrapLoader = ClassLoader.getSystemClassLoader().getParent(); and then get the classes of this class loader as explained here: How can I list all classes loaded in a specific class loader. But note, that getting the bootstrap class loader is not