My Quotes


When U were born , you cried and the world rejoiced
Live U'r life in such a way that when you go
THE WORLD SHOULD CRY






Tuesday, June 3, 2014

Load same class from 2 different jar files



 File file = new File("c:\\myjar.jar");
 URL url = file.toURL(); 
 URL[] urls = new URL[]{url};
 ClassLoader cl = new URLClassLoader(urls);
 Class cls = cl.loadClass("com.mypackage.myclass");

No comments :