Guest User

Untitled

a guest
Jun 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. final URL[] jars = new URL[] {
  2. new File("/home/cole/lib/a.jar").toURL();
  3. }
  4.  
  5. final URLClassLoader classLoader = new URLClassLoader(jars, null);
  6. final Class<?> implementation = classLoader.loadClass("Implementation");
  7. final CreatorInterface object = (CreatorInterface)implementation.newInstance();
Add Comment
Please, Sign In to add comment