code: static boolean isOnClasspath(String className) {
      boolean isOnClassPath = true;
      try {
        Class.forName(className);
      } catch (ClassNotFoundException exception) {
        isOnClassPath = false;
      }
      return isOnClassPath;
    }
docs: Checks if class is on class path
  @param className of the class to check.
  @return true if class in on class path, false otherwise.