public static void agentmain(String agentArgs, Instrumentation instrumentation) throws Exception {
    System.out.println("AGENTMAIN " + ProcessHandle.current().pid() + " " + agentArgs);

    for (String cp : agentArgs.split(File.pathSeparator)) {
      System.out.println("CLASSPATH ELEMENT: " + cp);

      File file = new File(cp);
      if (!file.exists()) {
        throw new FileNotFoundException("File does not exist: " + file);
      }

      instrumentation.appendToSystemClassLoaderSearch(new JarFile(file));
    }
  }
public static void agentmain(String agentArgs, Instrumentation instrumentation)