Why is the main method of class load AppClassLoader

AppClassLoader

AppClassLoader application class loader, also known as the system class loader is responsible for loading classes in the JVM starts JAR package java command from the system property or java.class.path classpath or CLASSPATH attribute specified by the operating system and the classpath

 

 

Bootstrap ClassLoder, ExtClassLoader, AppClassLoader so many ClassLoader, they are loaded from the class where the problem jdk source code has been given sun.misc.Launcher answer: Bootstrap ClassLoder load is System.getProperty ( "sun.boot.class.path ") ;, ExtClassLoader load is System.getProperty (" java.ext.dirs "), AppClassLoader load is System.getProperty (" java.class.path "),

 

 

https://juejin.im/post/5c7a41b0e51d4550690476b3

Guess you like

Origin www.cnblogs.com/zhongchang/p/12089217.html