If i have created a custom class loader, where to configure the new custom class loader in JVM so that its being used when needed?
Printable View
If i have created a custom class loader, where to configure the new custom class loader in JVM so that its being used when needed?
What do you mean? Can you elaborate it?Quote:
If i have created a custom class loader, where to configure the new custom class loader in JVM so that its being used when needed?
If i have a customClass loader say by name "UserClassLoader". I have to specify somewhere so that UserClassLoader is used for loading the classes.
I hope its clear now.
One way to use your class loader is by calling its loadClass() method.