Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Beginning Java and the fly likes classloaders in a jvm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "classloaders in a jvm" Watch "classloaders in a jvm" New topic

classloaders in a jvm

siva sankar
Ranch Hand

Joined: Jul 13, 2006
Posts: 68

how many classloaders will be there within a jvm.

Thanks & regards,
Ajay Singh
Ranch Hand

Joined: Dec 13, 2006
Posts: 182
one system loader + many user defined class-loader (if the user has defined any)
Chris Beckey
Ranch Hand

Joined: Jun 09, 2006
Posts: 116

It depends on the JVM, count on one for the core libs, one for the extensions (if any) and one for the user classes. App servers create many more. Run this code to see:
I agree. Here's the link:
subject: classloaders in a jvm
Similar Threads
Urgent: How do you modify classpath of websphere
How find all loaded classes/classloaders in JVM?
Singleton - Not quite so single....
Why ClassLoaders
Do multiple applets require multiple JVMs/JREs!