I am using a custom class loader which extends URLClassLoader. I load some classes into my custom class loader and perform some task. Once the task is completed i want to dispose of the class loader. I tried doing that by setting the reference to null.
But this does not garbage collect the class loader.
Is there a way that can help what i want to achieve?