本文介绍了什么加载java系统类加载器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们知道我们可以覆盖系统 with:
We know that we can override the System classloader with:
java -Djava.system.class.loader=com.test.MyClassLoader xxx
然后,因为 com.test.MyClassLoader
本身就是一个类,由谁来加载?
Then, since com.test.MyClassLoader
itself is a class, by whom is it loaded?
我们如何获得这个meta类加载器的类文件?
How do we get the class file of this "meta" classloader?
推荐答案
来自Javadoc的:
From the Javadoc for ClassLoader.getSystemClassLoader
:
默认的系统类加载器本身特定于JVM实现。
The default system class loader itself is specific to the JVM implementation.
这篇关于什么加载java系统类加载器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!