Hi,
I need a help in writing a
java program which loads a class dynamically.I have a sample.jar program at /home/nisha/sample.jar.
This sample.jar has MySample.class. I want to load Mysample.class dynamically using sample.jar. I want to pass sample.jar through source code and not by setting CLASSPATH env. Something like URI.getResource can be used.
I have idea on how to load a class file. But need help in passing the path of a jar file and loading MySample.class from test.jar
Could somebody help me?
Regards,
Nisha