public static boolean isInClassPath(String location) throws MalformedURLException {
    return isInClassPath(new File(location).toURI().toURL());
  }
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 name to test for
@return true if location is in the JVM classpath
geode-core/src/main/java/org/apache/geode/internal/lang/SystemUtils.java