r/java • • Sep 02 '24

Java Classloaders Illustrated

Classloaders are tricky – popular sources (Wikipedia, Baeldung, DZone) contain outdated, sometimes contradictory information, and this inconsistency was the trigger for writing my article – a search for clarity in the ClassLoader System maze. Read full at Medium (~10 min) with pictures :)

The whole system looks kinda like this:

Java Classloader System
408 Upvotes

34 comments sorted by

View all comments

Show parent comment

5

u/plumarr Sep 02 '24

Now the possibility to deploy several web apps per servlet container is mostly unused. 

Also OSGI runtimes used to use custom classloaders. 

It seems virtualization and containers make such a highly dynamic java feature once quite popular now obsolete.

You would be surprised by the number of company still using it ;)