code: public static List<Resource> getClasspathResources() {
        synchronized (classpathResources) {
           if (classpathResources.isEmpty()) {
              for (String jar : SystemInfo.JAVA_CLASS_PATH.split(SystemInfo.PATH_SEPARATOR)) {
                 File file = new File(jar);
                 if (file.isDirectory()) {
                    classpathResources.addAll(new FileResource(file).getChildren(true));
                 } else {
                    classpathResources.addAll(getJarContents(Resources.fromFile(jar), v -> true));
                 }
              }
           }
           return Collections.unmodifiableList(classpathResources);
        }
     }
docs: Gets classpath resources.
  
  @return A list of all resources on the classpath