public static boolean isInClassPath(URL location) throws MalformedURLException {
    String classPath = getClassPath();
    StringTokenizer st = new StringTokenizer(classPath, File.pathSeparator);
    while (st.hasMoreTokens()) {
      String path = st.nextToken();
      if (location.equals(new File(path).toURI().toURL())) {
        return true;
      }
    }
    return false;
  }
Returns true if the specified location is in the JVM classpath. This may ignore additions to
the classpath that are not reflected by the value in
{@code System.getProperty("java.class.path")}.

@param location the directory or jar URL to test for
@return true if location is in the JVM classpath
geode-core/src/main/java/org/apache/geode/internal/lang/SystemUtils.java