code: private static void addURL(URL url) throws Exception {
          URLClassLoader sysloader = (URLClassLoader) ClassLoader.getSystemClassLoader();
          Class<?> sysclass = URLClassLoader.class;
          Method method = sysclass.getDeclaredMethod("addURL", new Class[] { URL.class });
          method.setAccessible(true);
          method.invoke(sysloader, new Object[] { url });
      }
docs: Adds URL to system ClassLoader. This is not a nice approach as we use
  reflection, but it seems the only available in Java. This will be gone if
  we decided to go with javaagent and boot classloader.
  
  @param url
  URL to include on classpath.
  @throws IOException
  If URL could not be added.