aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "classloaders in a jvm" Watch "classloaders in a jvm" New topic
Author

classloaders in a jvm

siva sankar
Ranch Hand

Joined: Jul 13, 2006
Posts: 68
Hi,

how many classloaders will be there within a jvm.

Thanks & regards,
Siva
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: http://aspose.com/file-tools
 
subject: classloaders in a jvm