W. Joe Smith wrote:I would suggest looking up how to import classes. I think that is what you are looking for.
no i am not looking to import a class
Consider i have a dynamically changes java class tht is stored somewhere on my machine n i would like to call this class and run it using my main program
Rob Prime wrote:And if you want to do it dynamically, search for "reflection". Class.forName combined with Class.getMethod and Method.invoke can help you out.
i would help me a lot if you could quote an example for this n yes i dont want to invoke any method from the class i would like to run the whole class