File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Class loader" Watch "Class loader" New topic

Class loader

Sani babangida

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.
I agree. Here's the link:
subject: Class loader
It's not a secret anymore!