• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use ClassLoader ???

 
Kent Emia
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ??
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the classpath.
 
Marilyn de Queiroz
Sheriff
Posts: 9065
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You hardly ever have to worry about the ClassLoader class. It works behind the scenes.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic