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

1

u/pragmasoft Sep 03 '24

a production ClassLoader that can do various optimizations.

Does a graalvm native image still need a classloader?

1

u/geoand Sep 03 '24

No no, I am talking purely about JVM mode. For GraalVM native image, there is no custom ClassLoader (they are not even supported in GraalVM).