This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Class loading hierrarchy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Class loading hierrarchy" Watch "Class loading hierrarchy" New topic
Author

Class loading hierrarchy

Ragav Baskaran
Ranch Hand

Joined: Nov 04, 2007
Posts: 36
Hello All,

I want to know, how class loading works. For example if i have two classes named com.demo.DemoConstants in two jars named demo1.jar and demo2.jar and both jars in classpath , which class will be loaded by the JVM?

Is there any way to control the class that is getting loaded from the jar ?

Thanks,
Ragavendran
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Originally posted by Raga Vendran:

I want to know, how class loading works.


Did you try googling it? Did you get any results? Did you read those results. Which part of the results did you not understand?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
Introduction to the class loader hierarchy and the boot classpath is a very good introductory article.


Ping & DNS - my free Android networking tools app
 
 
subject: Class loading hierrarchy
 
Similar Threads
Class Loading in Websphere?
Applet Performance
Class not found error from deployed servlet
Class Loading in JBoss
Tomcat 5.5 Class loading issues--and I have done some home work on this one