PDA

View Full Version : java newb in need of help (classloader)



MR.UNOWEN
December 15th, 2007, 11:55 PM
Hello I need help creating a program in Java. Basically I need to use ClassLoader to load classes at runtime that implements a particular interface. From what I see on the api is that there's a loadclass method that gives you a Class object, but how do you construct an Object of that class? So if I have Class class, and it's of a class Demo do I do this: Demo dem = class(int something, ...)?

Also are all the methods of ClassLoader implemented? I noticed that it's abstract.

Every time I Google for a tutorial, all I get are tutorial of how to make your own custom Class Loader