I know we can do something like this:
Class.class.getResourceAsStream(\"/com/youcompany/yourapp/module/someresource.conf\")
to read the fil
In general can't get a list of resources like this. Some classloaders may not even be able to support this - imagine a classloader which can fetch individual files from a web server, but the web server doesn't have to support listing the contents of a directory. For a jar file you can load the contents of the jar file explicitly, of course.
(This question is similar, btw.)