A class loader is an object in Java responsible for finding binary representations of Java classes and loading them into the JVM. All JVMs start with the boot class loader responsible for loading the user's initial class, as well as some built-in types such as Class and SecurityManager , but users can provide their own class loaders to search for classes from other sources. For example, a custom classloader can generate its own classes by creating its own bytecode, or it can find classes from a network source.
To match your client’s needs, you don’t have to define your own classloader and you must rely on the bootloader to find all your classes. This is almost universally the case with simple Java programs, because use cases for custom loaders are usually quite complex and nuanced. You do not need to worry about this limitation unless you specifically want to change the way that these JVM classes are discovered and loaded.
templatetypedef
source share