This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes Class loader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Class loader" Watch "Class loader" New topic
Author

Class loader

Sani babangida
Greenhorn

Joined: Jan 31, 2007
Posts: 16
I would like to use the ForName to load up a file. please how does one use the current ClassLoader to lod up the file
Chris Beckey
Ranch Hand

Joined: Jun 09, 2006
Posts: 116

Assuming that the class file is on the classpath of the threads context class loader then you simply use :

You can also use:

to use a specific ClassLoader instance.
 
jQuery in Action, 2nd edition
 
subject: Class loader