Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final URL[] jars = new URL[] {
- new File("/home/cole/lib/a.jar").toURL();
- }
- final URLClassLoader classLoader = new URLClassLoader(jars, null);
- final Class<?> implementation = classLoader.loadClass("Implementation");
- final CreatorInterface object = (CreatorInterface)implementation.newInstance();
Add Comment
Please, Sign In to add comment