[英]Java Classloader default classloader
请告诉我默认使用哪个JDK类将应用程序类加载到jvm中。因为它的抽象class.so不能是Classloader类,所以JDK类用于加载应用程序类?
From experimentation on Oracle OpenJDK 8, this is sun.misc.Lanucher$AppClassLoader
which subclasses the concrete (non-abstract) URLClassLoader
. 从Oracle OpenJDK 8的实验开始,这是
sun.misc.Lanucher$AppClassLoader
,它是具体(非抽象) URLClassLoader
子类。
The links given are to the JDK6 source as per the tags in the original question. 根据原始问题中的标记给出的链接是JDK6源。 The Java 8 AppClassLoader is available here .
Java 8 AppClassLoader可在此处获得 。
When you read the theory then usually the first classloader is called a bootstrap class loader. 当您阅读理论时,通常第一个类加载器称为引导类加载器。 The instance will differ based on implementation (HotSpot, JRockit, IBM and based on version).
实例将根据实现(HotSpot,JRockit,IBM和基于版本)而有所不同。 There is more information on this at the Java API Specification .
Java API规范中有更多相关信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.