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

2020-11-16 Thread Alex Orlov
Hello Alan,   Thank you for such detailed answer. I read it with attention, but still don’t know how to solve my situation. Maybe may question didn’t provide all details, so here they are.   I want to create the following layer structure:   +++ + Boot Layer + +++        |        +

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

2020-11-16 Thread Alan Bateman
On 16/11/2020 09:17, Alex Orlov wrote: Hello Alan, Thank you for such detailed answer. I read it with attention, but still don’t know how to solve my situation. Maybe may question didn’t provide all details, so here they are. I want to create the following layer structure: +++ + Boot La

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

2020-11-16 Thread Christian Stein
Hi Alex, Perhaps a deeper look how Layrry works under the hood does help: https://github.com/moditect/layrry If I'm not mistaken, your use-case seems very similar to those Layrry tries to cope with. Cheers, Christian On Mon, Nov 16, 2020 at 10:17 AM Alex Orlov wrote: > > Hello Alan, > > Thank

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

2020-11-16 Thread Alan Bateman
On 15/11/2020 19:16, Alex Orlov wrote: 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 prob

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

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