File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Head First Android this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Class loader
 
It's not a secret anymore!