Select Page

Hierarchy of classloader

 Read this document about classloader (PDF)

  • System classloader is the content of the system variable CLASSPATH= you defined higher level
  • Loader of the servlet runner is own classloader of Resin, tomcat or other
  • Application classloader (controlled by resin or tomcat) find classes which are in the webapps directory (Application class).
  • Your own classloader if you write own lower level

As soon as you request a class in one of these loader, the classloader will take the first found during its walk under this rules:

  • if the class is not found at the current level (place where you request it, most of the time in your application), it will try to load it from the upper level, if not found it will continue and finish in the system classloader.
  • There is no downward request.

About The Author

Cédric Walter

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology.In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions.I'm the Founder and CEO of Disruptr GmbH.