Develop a modular application – Loading classes using ClassLoader

In Java, all the classes are loaded using several ClassLoader. In this article, we’ll develop a loader for our modules and watch the problems that arrive when working with custom ClassLoaders.

Normally, Java use the system ClassLoader to load all the classes of our application. So it contains all the classes of our application and all the classes our application needs to work. But the problem is that we cannot add our modules jar files into classpath because the application doesn’t know the modules jar files names.

Continue reading