A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
Class loader
Sani babangida
Greenhorn
Joined: Jan 31, 2007
Posts: 16
posted
Mar 08, 2007 10:35:00
0
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
I like...
posted
Mar 08, 2007 10:43:00
0
Assuming that the class file is on the classpath of the threads context class loader then you simply use :
Class.forName("tld.domain.classname");
You can also use:
Class.forName("tld.domain.classname", init, classLoader);
to use a specific
ClassLoader
instance.
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Class loader
Similar Threads
log4j in weblogic
Having to manually add certain folders and files to /wtpapps folder
Looking for example of necessary tearDown( )
compiling packages
Betterway to use global variable in webapplication
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter