aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to use ClassLoader ???" Watch "how to use ClassLoader ???" New topic
Author

how to use ClassLoader ???

Kent Emia
Greenhorn

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.


42
Marilyn de Queiroz
Sheriff

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


JavaBeginnersFaq
"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 ???
 
Similar Threads
What need to implement SystemClassLoader?
setting classpath dynamically
ClassCastException because of class loaders
Reading an xml file inside a Jar
java.lang.NoClassDefFoundError when trying a basic webservice using Spring WS 2.0.3