in Java 7 & 8 I use to be able to do

```
URLClassLoader urlLoader = (URLClassLoader) ClassLoader.getSystemClassLoader();
for (URL u : urlLoader.getURLs()) {
    System.out.println("*************** url=" + url);
}

```

But in Java 9 the above gives an error

```
java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClass
Loader

```

So how do I list all resources without knowing the package prefix or the filesystem path of the jar files?