code: public static void loadJAR(String jar) throws IOException, SecurityException, 
    IllegalArgumentException, NoSuchMethodException, IllegalAccessException, 
    InvocationTargetException {
      if (!jar.toLowerCase().endsWith(".jar")) {
        throw new IllegalArgumentException(
            "File specified did not end with .jar");
      }
      File file = new File(jar);
      if (!file.exists()) {
        throw new FileNotFoundException(jar);
      }
      addFile(file);
    }
docs: Attempts to load the given jar into the class path
  @param jar Full path to a .jar file
  @throws IOException if the file does not exist or cannot be accessed
  @throws SecurityException if there is a security manager present and the
  operation is denied
  @throws IllegalArgumentException if the filename did not end with .jar
  @throws NoSuchMethodException if there is an error with the class loader
  @throws IllegalAccessException if a security manager is present and the
  operation was denied
  @throws InvocationTargetException if there is an issue loading the jar