Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Class loader
Sani babangida
Greenhorn
Posts: 16
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 116
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
Those are the largest trousers in the world! Especially when next to this ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Betterway to use global variable in webapplication
compiling packages
log4j in weblogic
Having to manually add certain folders and files to /wtpapps folder
Looking for example of necessary tearDown( )
More...