wood burning stoves
The moose likes Beginning Java and the fly likes how to use ClassLoader ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to use ClassLoader ???" Watch "how to use ClassLoader ???" New topic

how to use ClassLoader ???

Kent Emia

Joined: Aug 04, 2003
Posts: 10
i am playing with some existing program and 1st time i've encountered ClassLoader ..

i've searched the API but still im confused does this also determine which path it it loading from ??

Kent Emia
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
the classpath.

Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
You hardly ever have to worry about the ClassLoader class. It works behind the scenes.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
You can use a custom class loader to load things that are not on the normal classpath. As noted above, you rarely have to think about such things. Maybe if you're writing some kind of plug-in architecture or working in a complex environment like an EJB container or you want to do something cute like reload a class in a running system.

What brought it to your attention? Have you bumped into a place you need one?

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link: http://aspose.com/file-tools
subject: how to use ClassLoader ???
It's not a secret anymore!