How to do “--add-modules” with dynamically created layer in JPMS?

2020-11-15 Thread Alex Orlov
Hi all,   I create JPMS layer this way:   Configuration cf = parentLayer.configuration().resolveAndBind(moduleFinder, ModuleFinder.of(), moduleNames); ModuleLayer layer = parentLayer.defineModulesWithOneLoader(cf, parentClassLoader);   And I have a problem with adding implementation modules. The

Re: How to do “--add-modules” with dynamically created layer in JPMS?

2020-11-15 Thread Johannes Spangenberg
I think you need to specify the "implementation modules" in the last argument of Configuration.resolveAndBind(...). Best regards, Johannes Am 15.11.2020 um 20:16 schrieb Alex Orlov: Hi all, I create JPMS layer this way: Configuration cf = parentLayer.configuration().resolveAndBind(module