On Thu, Jul 12, 2018 at 10:39 AM Daniel Anechitoaie
<
danie...@gmail.com> wrote:
> I'm using getClass().getClassLoader().getResource("plugins") to load a resource.
That is not a resource. That is (perhaps) a URL prefix used for a
variety of resources. And there is no way to enumerate children of a
URL.
Load a particular resource, e.g.
ThisClass.class.getResource("plugins/something.jar")
(preferring the package-relative path scheme) and if it is impractical
to hard-code the list of JARs, save it as a text file during the Maven
build, which text file you can then load as a resource.