code: public void expandClasspath(File... files) {
          ClassLoader classLoader = ClassLoader.getSystemClassLoader();
          Class<URLClassLoader> urlClass = URLClassLoader.class;
          for (File file: files) {
              LOGGER.info("Expanding classpath to include: " + file.getAbsolutePath());
              URI fileUri = file.toURI();
              try {
                  Method method = urlClass.getDeclaredMethod("addURL", URL.class);
                  method.setAccessible(true);
                  method.invoke(classLoader, fileUri.toURL());
              } catch (MalformedURLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
                  LOGGER.error("Error expanding classpath", e);
              }
          }
      }
docs: Extends the runtime classpath to include the files or directories specified.
  @param files one or more File objects representing a single JAR file or a directory containing JARs.
  @since 1.0.0